diff options
| author | wanzzhehe <[email protected]> | 2024-05-16 17:38:47 +0800 |
|---|---|---|
| committer | wanzzhehe <[email protected]> | 2024-05-16 17:38:47 +0800 |
| commit | b3f9bd3dc137f44d84aafc7c28d8495ede9be580 (patch) | |
| tree | 13087aef661da8f0961bcd27b6072be2e000d5cf /scripts | |
| parent | c98080e93f0005d3d4f00a22df8633afe2051c85 (diff) | |
Fix bug: can't add XMAKE_ROOTDIR to PATH
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/get.sh | 2 |
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 } |
