mirror of https://github.com/kenzok8/small.git
update 2024-12-20 04:14:24
This commit is contained in:
parent
4054b2c078
commit
cf0b3c6f73
|
@ -1066,7 +1066,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 'NR == 1 {print $1}' | cut -d'-' -f4-")
|
version = sys.exec("apk info -L luci-app-passwall 2>/dev/null | awk 'NR == 1 {print $1}' | cut -d'-' -f4-")
|
||||||
end
|
end
|
||||||
return version or ""
|
return version or ""
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue