From: Simon Ruderich Date: Tue, 8 Dec 2015 09:08:24 +0000 (+0100) Subject: replace echo with printf X-Git-Tag: v0.1.0~163 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1369c9afb87df56638b47b475fd0bee95e7a6f8d;p=thirdparty%2Fdehydrated.git replace echo with printf --- diff --git a/letsencrypt.sh b/letsencrypt.sh index 6867274..338569a 100755 --- a/letsencrypt.sh +++ b/letsencrypt.sh @@ -320,7 +320,7 @@ fi # Generate certificates for all domains found in domains.txt. Check if existing certificate are about to expire <"${DOMAINS_TXT}" sed 's/^\s*//g;s/\s*$//g' | grep -v '^#' | grep -v '^$' | while read -r line; do - domain="$(echo "${line}" | cut -d' ' -f1)" + domain="$(printf '%s\n' "${line}" | cut -d' ' -f1)" cert="${BASEDIR}/certs/${domain}/cert.pem" echo "Processing ${domain}"