]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
regress: Ensure to detect bash correctly in scripts/regress-utils.sh
authorEric Bollengier <eric@baculasystems.com>
Wed, 23 Mar 2022 14:54:47 +0000 (15:54 +0100)
committerEric Bollengier <eric@baculasystems.com>
Thu, 24 Mar 2022 08:03:28 +0000 (09:03 +0100)
regress/scripts/regress-utils.sh

index 8369565a2551ad06718e211e6eb13901876ff74a..882b2075d370e05f5100b0afe893f6db5f581777 100755 (executable)
@@ -17,7 +17,7 @@
 #
 
  # now check if we are running under a proper shell
-if test "x/$(basename $0)" != "x/bash"
+if test "x/$(basename $SHELL)" != "x/bash"
 then
    echo "Regression script must use BASH for this utilities!"
    exit 1