projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Use regex to determine whether to print help text for arvbash.sh. refs #10655
[arvados.git]
/
tools
/
arvbash
/
arvbash.sh
diff --git
a/tools/arvbash/arvbash.sh
b/tools/arvbash/arvbash.sh
index 6844ebd693dc28142945e39bcdc1682089adf120..c2785c498c22a7569d5b1c5e2e9e89a6fc014a27 100755
(executable)
--- a/
tools/arvbash/arvbash.sh
+++ b/
tools/arvbash/arvbash.sh
@@
-40,7
+40,7
@@
if [[ "$1" = "--install" ]] ; then
else
echo "Already installed in ~/.bashrc"
fi
-elif
[[ $0 != "bash"
]] ; then
+elif
! [[ $0 =~ bash$
]] ; then
echo "$helpmessage"
fi