From: Lukas Schauer Date: Mon, 1 Nov 2021 17:54:30 +0000 (+0100) Subject: fix regression from e963438c (fixes #849) X-Git-Tag: v0.7.1~11 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8e5977890a4da6a1da3f78467fbc3c0ffcb947bf;p=thirdparty%2Fdehydrated.git fix regression from e963438c (fixes #849) --- 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"