summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/get.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/get.sh b/scripts/get.sh
index 7cfe5223d..f88e9ce7b 100755
--- a/scripts/get.sh
+++ b/scripts/get.sh
@@ -237,7 +237,7 @@ fi
#
install_profile() {
export XMAKE_ROOTDIR="$prefix/bin"
- export PATH="$XMAKE_ROOTDIR:$PATH"
+ [[ "$PATH" =~ (^|:)"$XMAKE_ROOTDIR"(:|$) ]] && export PATH="$XMAKE_ROOTDIR:$PATH"
xmake --version
xmake update --integrate
}