fix get_version shell command (#2804)
This commit is contained in:
parent
1198366b16
commit
7767161973
@ -938,7 +938,7 @@ function to_move(app_name,file)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function get_version()
|
function get_version()
|
||||||
return sys.exec("echo -n $(opkg info luci-app-passwall |grep 'Version'|awk '{print $2}')")
|
return sys.exec("echo -n $(opkg list-installed luci-app-passwall |awk '{print $3}')")
|
||||||
end
|
end
|
||||||
|
|
||||||
function to_check_self()
|
function to_check_self()
|
||||||
|
Loading…
Reference in New Issue
Block a user