From cd777f095cedf5872968797facaf56d69348f36b Mon Sep 17 00:00:00 2001 From: OpportunityLiu Date: Thu, 20 Jun 2019 12:25:49 +0800 Subject: fix --- xmake/actions/update/main.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.3.1