From: Lukas Schauer Date: Tue, 6 Feb 2018 19:38:02 +0000 (+0100) Subject: Remove additional whitespace from extract_altnames X-Git-Tag: v0.6.0~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=87194f65969394db6703da7fbdea114bb000bd00;p=thirdparty%2Fdehydrated.git Remove additional whitespace from extract_altnames --- diff --git a/dehydrated b/dehydrated index 93650ec..583a177 100755 --- a/dehydrated +++ b/dehydrated @@ -589,11 +589,11 @@ extract_altnames() { fi # strip away the DNS: prefix altnames="$( <<<"${altnames}" _sed -e 's/^(DNS:|othername:)//' )" - 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 }