mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-03-28 03:51:06 +01:00
fixed whitespace-stripping, replace all whitespace in domains.txt entries with single space character (fixes #60 and #78)
This commit is contained in:
@@ -377,7 +377,7 @@ command_sign_domains() {
|
||||
fi
|
||||
|
||||
# Generate certificates for all domains found in domains.txt. Check if existing certificate are about to expire
|
||||
<"${DOMAINS_TXT}" sed 's/^[[:space:]]*//g;s/[[:space:]]*$//g' | (grep -vE '^(#|$)' || true) | while read -r line; do
|
||||
<"${DOMAINS_TXT}" sed -E -e 's/^[[:space:]]*//g' -e 's/[[:space:]]*$//g' -e 's/[[:space:]]+/ /g' | (grep -vE '^(#|$)' || true) | while read -r line; do
|
||||
domain="$(printf '%s\n' "${line}" | cut -d' ' -f1)"
|
||||
morenames="$(printf '%s\n' "${line}" | cut -s -d' ' -f2-)"
|
||||
cert="${BASEDIR}/certs/${domain}/cert.pem"
|
||||
|
||||
Reference in New Issue
Block a user