summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2021-11-26 13:02:11 +0800
committerGitHub <[email protected]>2021-11-26 13:02:11 +0800
commitf25a332634cc2af78721212edf8c7713412c71e4 (patch)
tree684ec272d366adb878aa54a48ad55686a0f55576
parentca005b27b32f68a990f1837a559e4a7d28785956 (diff)
Update main.lua
-rw-r--r--xmake/actions/update/main.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/actions/update/main.lua b/xmake/actions/update/main.lua
index 94ea1b7aa..7db7eda58 100644
--- a/xmake/actions/update/main.lua
+++ b/xmake/actions/update/main.lua
@@ -164,7 +164,7 @@ function _install(sourcedir)
no_admin = try {function () return winos.registry_query("HKEY_CURRENT_USER\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\XMake;NoAdmin") end}
end
if no_admin ~= nil then
- no_admin = tostring(value):lower() == "true"
+ no_admin = tostring(no_admin):lower() == "true"
else
local testfile = path.join(os.programdir(), "temp-install")
no_admin = os.trycp(path.join(os.programdir(), "scripts", "run.vbs"), testfile)