From fb8899cf630d5ccea014ce16adcceb62c9565eb1 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 20 Dec 2018 22:29:18 +0800 Subject: fix update tips --- xmake/actions/update/main.lua | 7 +++++-- 1 file 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 -- cgit v1.3.1