summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorwanzzhehe <[email protected]>2024-05-16 17:38:47 +0800
committerwanzzhehe <[email protected]>2024-05-16 17:38:47 +0800
commitb3f9bd3dc137f44d84aafc7c28d8495ede9be580 (patch)
tree13087aef661da8f0961bcd27b6072be2e000d5cf /scripts
parentc98080e93f0005d3d4f00a22df8633afe2051c85 (diff)
Fix bug: can't add XMAKE_ROOTDIR to PATH
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 f88e9ce7b..4b9c80156 100755
--- a/scripts/get.sh
+++ b/scripts/get.sh
@@ -237,7 +237,7 @@ fi
#
install_profile() {
export XMAKE_ROOTDIR="$prefix/bin"
- [[ "$PATH" =~ (^|:)"$XMAKE_ROOTDIR"(:|$) ]] && export PATH="$XMAKE_ROOTDIR:$PATH"
+ [[ "$PATH" =~ (^|:)"$XMAKE_ROOTDIR"(:|$) ]] || export PATH="$XMAKE_ROOTDIR:$PATH"
xmake --version
xmake update --integrate
}