]> git.ipfire.org Git - thirdparty/dehydrated.git/commitdiff
fix regression from e963438c (fixes #849)
authorLukas Schauer <lukas@schauer.so>
Mon, 1 Nov 2021 17:54:30 +0000 (18:54 +0100)
committerLukas Schauer <lukas@schauer.so>
Mon, 1 Nov 2021 17:57:57 +0000 (18:57 +0100)
dehydrated

index 642a5b7de8710903e1bb4b2fe7d545d0d83cc11a..4a858f417cb9643c8c0a28ecf37c862f00b9e931 100755 (executable)
@@ -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"