From: Michal Nowak Date: Mon, 14 Nov 2022 20:21:05 +0000 (+0100) Subject: Hide sh-long-option checkbashism confusion X-Git-Tag: v9.16.36~29^2~1 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=c40916dbf302d3532aa36e8e3cfba04fb766a363;p=thirdparty%2Fbind9.git Hide sh-long-option checkbashism confusion 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: -- "$@") --- diff --git a/bin/tests/system/system-test-driver.sh b/bin/tests/system/system-test-driver.sh index 275a3efcd44..9d62a2441da 100755 --- a/bin/tests/system/system-test-driver.sh +++ b/bin/tests/system/system-test-driver.sh @@ -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