diff --git a/genprotimg/samples/check_hostkeydoc b/genprotimg/samples/check_hostkeydoc index 77453215..7e9f2321 100755 --- a/genprotimg/samples/check_hostkeydoc +++ b/genprotimg/samples/check_hostkeydoc @@ -37,7 +37,7 @@ cleanup() trap cleanup EXIT # Enhanced error checking for bash -if echo $SHELL | grep /bin/bash > /dev/null +if [ -n "${BASH}" ] then set -o pipefail set -o nounset