Use regex to determine whether to print help text for arvbash.sh. refs #10655
[arvados.git] / tools / arvbash / arvbash.sh
index 6844ebd693dc28142945e39bcdc1682089adf120..c2785c498c22a7569d5b1c5e2e9e89a6fc014a27 100755 (executable)
@@ -40,7 +40,7 @@ if [[ "$1" = "--install" ]] ; then
     else
         echo "Already installed in ~/.bashrc"
     fi
     else
         echo "Already installed in ~/.bashrc"
     fi
-elif [[ $0 != "bash" ]] ; then
+elif ! [[ $0 =~ bash$ ]] ; then
     echo "$helpmessage"
 fi
 
     echo "$helpmessage"
 fi