From c4be4c695a09f6e84c23dd49ac15dd31ebcb7f90 Mon Sep 17 00:00:00 2001 From: Benjamin Dos Santos Date: Sun, 6 Dec 2015 01:33:40 +0100 Subject: [PATCH] style: double quote to prevent globbing and word splitting https://github.com/koalaman/shellcheck/wiki/Sc2086 --- letsencrypt.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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) -