Skip to content

Commit 3dfaa79

Browse files
committed
sh.rust-web-install: avoid problems with new CBE 11.4.81 release
1 parent a18c482 commit 3dfaa79

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sh.rust-web-install

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ fi
2121

2222
( cd $RUST_SOLARIS_DIR; rm -f bin; ln -s rustc-$RUST_SOLARIS_VERSION/bin bin )
2323

24-
echo $PATH | grep $RUST_SOLARIS_DIR/rustc-$RUST_SOLARIS_VERSION/bin > /dev/null
25-
if [ $? -ne 0 ] ; then
24+
if ! echo "$PATH" | grep -q "$RUST_SOLARIS_DIR/rustc-$RUST_SOLARIS_VERSION/bin" ; then
2625
PATH=$RUST_SOLARIS_DIR/rustc-$RUST_SOLARIS_VERSION/bin:$PATH
2726
echo "PATH was modified to: PATH=$RUST_SOLARIS_DIR/rustc-$RUST_SOLARIS_VERSION/bin:\$PATH"
2827
fi

0 commit comments

Comments
 (0)