summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2018-12-19 23:38:34 +0800
committerruki <[email protected]>2018-12-19 15:51:27 +0800
commit27e69917cb7c5c6794ff2e9b579acb6280dfd2a6 (patch)
treec70bd56cfcf225d9b5c98b18c885557e9b9cec66
parent9677a8c2cfbdaa4c6b3f5d7eabdf95648f7723db (diff)
fix xmake update
-rw-r--r--xmake/actions/update/main.lua7
1 files changed, 1 insertions, 6 deletions
diff --git a/xmake/actions/update/main.lua b/xmake/actions/update/main.lua
index 8c7993204..2c93c05aa 100644
--- a/xmake/actions/update/main.lua
+++ b/xmake/actions/update/main.lua
@@ -174,12 +174,7 @@ function _install(sourcedir, version)
raise("the installer(%s) not found!", installer)
end
else
- if os.programdir():startswith("/usr/") then
- os.vrun("make build")
- _sudo("make install")
- else
- os.vrun("./scripts/get.sh __local__")
- end
+ os.vrun("./scripts/get.sh __local__")
end
return true
end,