File tree 3 files changed +3
-3
lines changed
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 237
237
#
238
238
install_profile () {
239
239
export XMAKE_ROOTDIR=" $prefix /bin"
240
- [[ " $PATH " =~ (^| :)" $XMAKE_ROOTDIR " (:| $) ]] && export PATH=" $XMAKE_ROOTDIR :$PATH "
240
+ [[ " $PATH " =~ (^| :)" $XMAKE_ROOTDIR " (:| $) ]] || export PATH=" $XMAKE_ROOTDIR :$PATH "
241
241
xmake --version
242
242
xmake update --integrate
243
243
}
Original file line number Diff line number Diff line change 19
19
#
20
20
21
21
# register PATH
22
- string match --regex --quiet " (^|:)$XMAKE_ROOTDIR (:|\$ )" " $PATH " && \
22
+ string match --regex --quiet " (^|:)$XMAKE_ROOTDIR (:|\$ )" " $PATH " || \
23
23
export PATH=" $XMAKE_ROOTDIR :$PATH "
24
24
25
25
# register environments
Original file line number Diff line number Diff line change 19
19
#
20
20
21
21
# register PATH
22
- [[ " $PATH " =~ (^| :)" $XMAKE_ROOTDIR " (:| $) ]] && export PATH=" $XMAKE_ROOTDIR :$PATH "
22
+ [[ " $PATH " =~ (^| :)" $XMAKE_ROOTDIR " (:| $) ]] || export PATH=" $XMAKE_ROOTDIR :$PATH "
23
23
24
24
# register completions
25
25
if [[ -n " $ZSH_VERSION " ]]; then
You can’t perform that action at this time.
0 commit comments