2411: Add copyright notices to everything.
[arvados.git] / tools / arvbash / arvbash.sh
index 6844ebd693dc28142945e39bcdc1682089adf120..b47e3b83ef63cf6c716bd8bc9903b02779580101 100755 (executable)
@@ -1,4 +1,8 @@
 #!/bin/bash
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
 # bash functions for managing Arvados tokens and other conveniences.
 
 read -rd "\000" helpmessage <<EOF
@@ -40,7 +44,7 @@ if [[ "$1" = "--install" ]] ; then
     else
         echo "Already installed in ~/.bashrc"
     fi
-elif [[ $0 != "bash" ]] ; then
+elif ! [[ $0 =~ bash$ ]] ; then
     echo "$helpmessage"
 fi