diff --git a/letsencrypt.sh b/letsencrypt.sh index 0c1d544..ec5467f 100755 --- a/letsencrypt.sh +++ b/letsencrypt.sh @@ -48,11 +48,11 @@ hex2bin() { _request() { temperr="$(mktemp)" if [[ "${1}" = "head" ]]; then - curl -sSf -I "${2}" 2>${temperr} + curl -sSf -I "${2}" 2> "${temperr}" elif [[ "${1}" = "get" ]]; then - curl -sSf "${2}" 2>${temperr} + curl -sSf "${2}" 2> "${temperr}" elif [[ "${1}" = "post" ]]; then - curl -sSf "${2}" -d "${3}" 2>${temperr} + curl -sSf "${2}" -d "${3}" 2> "${temperr}" fi if [[ ! -z "$(<${temperr})" ]]; then @@ -181,6 +181,6 @@ if [[ "${register}" = "1" ]]; then fi # Generate certificates for all domains found in domain.txt (TODO: check if certificate already exists and is about to expire) -