diff options
| author | ruki <[email protected]> | 2021-11-26 13:02:11 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-11-26 13:02:11 +0800 |
| commit | f25a332634cc2af78721212edf8c7713412c71e4 (patch) | |
| tree | 684ec272d366adb878aa54a48ad55686a0f55576 | |
| parent | ca005b27b32f68a990f1837a559e4a7d28785956 (diff) | |
Update main.lua
| -rw-r--r-- | xmake/actions/update/main.lua | 2 |
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) |
