summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOpportunityLiu <[email protected]>2019-06-20 12:25:49 +0800
committerOpportunityLiu <[email protected]>2019-06-20 12:25:49 +0800
commitcd777f095cedf5872968797facaf56d69348f36b (patch)
treef542d70506fbb0f01f622cb35bf7d2c332bd590c
parenta3229f788ef9b0b1695e5996fc682ac4d0ab016a (diff)
fix
-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 2ad5ac647..8ef60b5cb 100644
--- a/xmake/actions/update/main.lua
+++ b/xmake/actions/update/main.lua
@@ -155,7 +155,7 @@ function _install(sourcedir)
-- /D sets the default installation directory ($INSTDIR), overriding InstallDir and InstallDirRegKey. It must be the last parameter used in the command line and must not contain any quotes, even if the path contains spaces. Only absolute paths are supported.
local params = ("/D=" .. os.programdir()):split("%s", { strict = true })
local testfile = path.join(os.programdir(), "temp-install")
- local no_admin = os.trymv(path.join(os.programdir(), "scripts", "run.vbs"), testfile)
+ local no_admin = os.trycp(path.join(os.programdir(), "scripts", "run.vbs"), testfile)
os.tryrm(testfile)
if no_admin then table.insert(params, 1, "/NOADMIN") end
if not option.get("verbose") then table.insert(params, 1, "/S") end