diff options
| author | ruki <[email protected]> | 2018-12-20 22:29:18 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2018-12-20 08:55:52 +0800 |
| commit | fb8899cf630d5ccea014ce16adcceb62c9565eb1 (patch) | |
| tree | 7afd6528c780cea2ee4f13c717b8b4fd0eafd3a3 | |
| parent | fefc4bcfaba007f0db0765b68ffb1de05ae5c24a (diff) | |
fix update tips
| -rw-r--r-- | xmake/actions/update/main.lua | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/xmake/actions/update/main.lua b/xmake/actions/update/main.lua index 2c93c05aa..7d2f9aced 100644 --- a/xmake/actions/update/main.lua +++ b/xmake/actions/update/main.lua @@ -147,8 +147,11 @@ function _install(sourcedir, version) -- the install task local install_task = function () + -- get the install directory + local installdir = is_host("windows") and os.programdir() or "~/.local/bin" + -- trace - cprintf("\r${yellow} => ${clear}installing to %s .. ", os.programdir()) + cprintf("\r${yellow} => ${clear}installing to %s .. ", installdir) local ok = try { function () @@ -188,7 +191,7 @@ function _install(sourcedir, version) -- trace if ok then - cprint("\r${yellow} => ${clear}install to %s .. ${green}ok", os.programdir()) + cprint("\r${yellow} => ${clear}install to %s .. ${green}ok", installdir) else raise("install failed!") end |
