From 56c68dfda44e52ab5a7daa9b51a480aa68867615 Mon Sep 17 00:00:00 2001 From: Tianhe Y Date: Sun, 2 Apr 2023 10:42:32 +0800 Subject: [PATCH] luci: optimize app binary find #2433 (#2442) --- luci-app-passwall/luasrc/passwall/api.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/luci-app-passwall/luasrc/passwall/api.lua b/luci-app-passwall/luasrc/passwall/api.lua index 2a2155f05..8b5706cac 100644 --- a/luci-app-passwall/luasrc/passwall/api.lua +++ b/luci-app-passwall/luasrc/passwall/api.lua @@ -383,7 +383,7 @@ function get_customed_path(e) end function is_finded(e) - return luci.sys.exec('type -t -p "/bin/%s" -p "%s" "%s"' % {e, get_customed_path(e), e}) ~= "" and true or false + return luci.sys.exec('type -t -p "/bin/%s" -p "/usr/bin/%s" -p "%s" "%s"' % {e, e, get_customed_path(e), e}) ~= "" and true or false end function clone(org)