Skip to content

Commit 64edf09

Browse files
committed
fix bash operator
=~ is an undocumented bash comparison operator, use == instead.
1 parent 91e32b7 commit 64edf09

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

env.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ export NTA_ROOTDIR=$NTA
3232
# different paths to set: DYLD_LIBRARY_PATH on Mac and LD_LIBRARY_PATH on
3333
# Linux.
3434
LDIR="$NTA/lib"
35-
if [[ ! "$DYLD_LIBRARY_PATH" =~ "$LDIR" ]]; then
35+
if [[ ! "$DYLD_LIBRARY_PATH" == "$LDIR" ]]; then
3636
export DYLD_LIBRARY_PATH=$LDIR:$DYLD_LIBRARY_PATH
3737
fi
38-
if [[ ! "$LD_LIBRARY_PATH" =~ "$LDIR" ]]; then
38+
if [[ ! "$LD_LIBRARY_PATH" == "$LDIR" ]]; then
3939
export LD_LIBRARY_PATH=$LDIR:$LD_LIBRARY_PATH
4040
fi

0 commit comments

Comments
 (0)