]> git.ipfire.org Git - thirdparty/dehydrated.git/commitdiff
replace echo with printf
authorSimon Ruderich <simon@ruderich.org>
Tue, 8 Dec 2015 09:08:24 +0000 (10:08 +0100)
committerSimon Ruderich <simon@ruderich.org>
Tue, 8 Dec 2015 15:04:47 +0000 (16:04 +0100)
letsencrypt.sh

index 68672742a5663f6b4c74b7d4e3622c06ee8be15f..338569ace15a179db499781d170e7d8145902fb7 100755 (executable)
@@ -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}"