]> git.ipfire.org Git - thirdparty/dehydrated.git/commitdiff
Remove additional whitespace from extract_altnames
authorLukas Schauer <lukas@schauer.so>
Tue, 6 Feb 2018 19:38:02 +0000 (20:38 +0100)
committerLukas Schauer <lukas@schauer.so>
Tue, 6 Feb 2018 19:38:02 +0000 (20:38 +0100)
dehydrated

index 93650ec332b8fadbc65095d88c81be461d3df5d9..583a177cadf7796df071423ef2162ee9ae8b07ad 100755 (executable)
@@ -589,11 +589,11 @@ extract_altnames() {
     fi
     # strip away the DNS: prefix
     altnames="$( <<<"${altnames}" _sed -e 's/^(DNS:|othername:<unsupported>)//' )"
-    echo "${altnames}" | tr '\n' ' '
+    printf "%s" "${altnames}" | tr '\n' ' '
   else
     # No SANs, extract CN
     altnames="$( <<<"${reqtext}" grep '^[[:space:]]*Subject:' | _sed -e 's/.* CN ?= ?([^ /,]*).*/\1/' )"
-    echo "${altnames}"
+    printf "%s" "${altnames}"
   fi
 }