summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2023-03-03 22:56:05 +0800
committerruki <[email protected]>2023-03-03 22:56:05 +0800
commitf3f1a248578819b5876630c62996078bc36b4744 (patch)
treeeba0ed851dd49c86e3fa7e265b5b9f62dd1429dc
parent6c43a097157fe7f9e10e576aa637159503ff426a (diff)
improve tips
-rwxr-xr-xscripts/get.sh2
-rw-r--r--xmake/actions/update/main.lua4
2 files changed, 4 insertions, 2 deletions
diff --git a/scripts/get.sh b/scripts/get.sh
index 1350e3470..d12c67686 100755
--- a/scripts/get.sh
+++ b/scripts/get.sh
@@ -246,7 +246,5 @@ xmake update --integrate
if xmake --version >/dev/null 2>&1; then xmake --version; else
source ~/.xmake/profile
xmake --version
- echo "Reload shell profile by running the following command now!"
- echo -e "\x1b[1msource ~/.xmake/profile\x1b[0m"
fi
diff --git a/xmake/actions/update/main.lua b/xmake/actions/update/main.lua
index 4433d18d8..dc8b3bcf0 100644
--- a/xmake/actions/update/main.lua
+++ b/xmake/actions/update/main.lua
@@ -352,6 +352,10 @@ test -f "%s" && source "%s"
-- trace
if ok then
cprint("${color.success}${text.success}")
+ if not is_host("windows") then
+ print("Reload shell profile by running the following command now!")
+ cprint("${bright}source ~/.xmake/profile${clear}")
+ end
else
cprint("${color.failure}${text.failure}")
end