luci: get the exact remote version

This commit is contained in:
zhusir 2023-04-20 01:16:10 +08:00 committed by sbwml
parent 45fbd0be19
commit 85883c8972

View File

@ -910,7 +910,6 @@ function to_check_self()
end
local local_version = get_version()
local remote_version = sys.exec("echo -n $(grep 'PKG_VERSION' /tmp/passwall_makefile|awk -F '=' '{print $2}')")
.. "-" .. sys.exec("echo -n $(grep 'PKG_RELEASE' /tmp/passwall_makefile|awk -F '=' '{print $2}')")
local has_update = compare_versions(local_version, "<", remote_version)
if not has_update then