From 0c48343c7a35e299595c6af70c7191a5cc402262 Mon Sep 17 00:00:00 2001 From: Tim Kimber Date: Fri, 1 Jan 2021 18:39:08 +0000 Subject: [PATCH] Check for posix mode and show a sensible error --- getssl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/getssl b/getssl index a20a9bd..be34b3b 100755 --- a/getssl +++ b/getssl @@ -250,6 +250,10 @@ # 2020-12-29 Fix dig SOA lookup (#617)(2.33) # ---------------------------------------------------------------------------------------- +case :$SHELLOPTS: in + *:posix:*) echo -e "${0##*/}: Running with POSIX mode enabled is not supported" >&2; exit 1;; +esac + PROGNAME=${0##*/} PROGDIR="$(cd "$(dirname "$0")" || exit; pwd -P;)" VERSION="2.33"