From fcd5d64a45ad6a7393c43dcfcab2e6ba12af8fa3 Mon Sep 17 00:00:00 2001 From: Marc Hartmayer Date: Wed, 15 Jul 2020 12:05:46 +0200 Subject: [PATCH] genprotimg/check_hostkeydoc: use POSIX compatibility mode MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use the POSIX compatibility mode in a bash shell. Reviewed-by: Viktor Mihajlovski Signed-off-by: Marc Hartmayer Signed-off-by: Jan Höppner --- genprotimg/samples/check_hostkeydoc | 1 + 1 file changed, 1 insertion(+) diff --git a/genprotimg/samples/check_hostkeydoc b/genprotimg/samples/check_hostkeydoc index 7e9f2321..91e5db6f 100755 --- a/genprotimg/samples/check_hostkeydoc +++ b/genprotimg/samples/check_hostkeydoc @@ -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