]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Hide sh-long-option checkbashism confusion
authorMichal Nowak <mnowak@isc.org>
Mon, 14 Nov 2022 20:21:05 +0000 (21:21 +0100)
committerMichal Nowak <mnowak@isc.org>
Mon, 14 Nov 2022 22:13:04 +0000 (23:13 +0100)
    possible bashism in ./bin/tests/system/system-test-driver.sh line 30 (sh --long-option):
    OPTS=$(getopt --shell sh --name "$(basename "$0")" --options '' --longoptions test-name:,log-file:,trs-file:,color-tests:,expect-failure:,enable-hard-errors: -- "$@")

bin/tests/system/system-test-driver.sh

index 275a3efcd44c15290601c6f2e08251728091831c..9d62a2441da951445648644a6a1f4e852083ab55 100755 (executable)
@@ -27,7 +27,7 @@ if [ "$?" -ne 4 ]; then
     exit 1
 fi
 
-OPTS=$(getopt --shell sh --name "$(basename "$0")" --options '' --longoptions test-name:,log-file:,trs-file:,color-tests:,expect-failure:,enable-hard-errors: -- "$@")
+OPTS=$(getopt --shell "sh" --name "$(basename "$0")" --options '' --longoptions test-name:,log-file:,trs-file:,color-tests:,expect-failure:,enable-hard-errors: -- "$@")
 
 if [ "$?" != 0 ] ; then echo "Failed parsing options." >&2 ; exit 1 ; fi