luci-app-passwall: sync upstream

last commit: 05fe13f7c1
This commit is contained in:
gitea-action 2024-11-19 11:00:18 +08:00
parent e26c8b550a
commit d96a60c278

View File

@ -989,7 +989,7 @@ end
function get_version() function get_version()
local version = sys.exec("opkg list-installed luci-app-passwall 2>/dev/null | awk '{print $3}'") local version = sys.exec("opkg list-installed luci-app-passwall 2>/dev/null | awk '{print $3}'")
if not version or #version == 0 then if not version or #version == 0 then
version = sys.exec("apk info luci-app-passwall 2>/dev/null | awk '{print $2}'") version = sys.exec("apk info luci-app-passwall 2>/dev/null | awk 'NR == 1 {print $1}' | cut -d'-' -f4-")
end end
return version or "" return version or ""
end end