From 1369c9afb87df56638b47b475fd0bee95e7a6f8d Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Tue, 8 Dec 2015 10:08:24 +0100 Subject: [PATCH] replace echo with printf --- letsencrypt.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}" -- 2.47.2