From 8e5977890a4da6a1da3f78467fbc3c0ffcb947bf Mon Sep 17 00:00:00 2001 From: Lukas Schauer Date: Mon, 1 Nov 2021 18:54:30 +0100 Subject: [PATCH] fix regression from e963438c (fixes #849) --- dehydrated | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dehydrated b/dehydrated index 642a5b7..4a858f4 100755 --- a/dehydrated +++ b/dehydrated @@ -994,7 +994,8 @@ extract_altnames() { # SANs used, extract these altnames="$( <<<"${reqtext}" awk '/X509v3 Subject Alternative Name:/{print;getline;print;}' | tail -n1 )" # split to one per line: - altnames="$( <<<"${altnames}" _sed -e 's/^[[:space:]]*//; s/, /'"'$'\n'"'/g' )" + # shellcheck disable=SC1003 + altnames="$( <<<"${altnames}" _sed -e 's/^[[:space:]]*//; s/, /\'$'\n''/g' )" # we can only get DNS: ones signed if grep -qEv '^(DNS|othername):' <<<"${altnames}"; then _exiterr "Certificate signing request contains non-DNS Subject Alternative Names" -- 2.47.3