genprotimg/check_hostkeydoc: use POSIX compatibility mode

Use the POSIX compatibility mode in a bash shell.

Reviewed-by: Viktor Mihajlovski <mihajlov@linux.ibm.com>
Signed-off-by: Marc Hartmayer <mhartmay@linux.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
Marc Hartmayer
2020-07-15 12:05:46 +02:00
committed by Jan Höppner
parent 320e11dcf9
commit fcd5d64a45

View File

@@ -39,6 +39,7 @@ trap cleanup EXIT
# Enhanced error checking for bash
if [ -n "${BASH}" ]
then
set -o posix
set -o pipefail
set -o nounset
fi