mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-07-05 04:31:39 +02:00
style: double quote to prevent globbing and word splitting
https://github.com/koalaman/shellcheck/wiki/Sc2086
This commit is contained in:
committed by
Lukas Schauer
parent
dd5f36e536
commit
c4be4c695a
+4
-4
@@ -48,11 +48,11 @@ hex2bin() {
|
|||||||
_request() {
|
_request() {
|
||||||
temperr="$(mktemp)"
|
temperr="$(mktemp)"
|
||||||
if [[ "${1}" = "head" ]]; then
|
if [[ "${1}" = "head" ]]; then
|
||||||
curl -sSf -I "${2}" 2>${temperr}
|
curl -sSf -I "${2}" 2> "${temperr}"
|
||||||
elif [[ "${1}" = "get" ]]; then
|
elif [[ "${1}" = "get" ]]; then
|
||||||
curl -sSf "${2}" 2>${temperr}
|
curl -sSf "${2}" 2> "${temperr}"
|
||||||
elif [[ "${1}" = "post" ]]; then
|
elif [[ "${1}" = "post" ]]; then
|
||||||
curl -sSf "${2}" -d "${3}" 2>${temperr}
|
curl -sSf "${2}" -d "${3}" 2> "${temperr}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ ! -z "$(<${temperr})" ]]; then
|
if [[ ! -z "$(<${temperr})" ]]; then
|
||||||
@@ -181,6 +181,6 @@ if [[ "${register}" = "1" ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Generate certificates for all domains found in domain.txt (TODO: check if certificate already exists and is about to expire)
|
# Generate certificates for all domains found in domain.txt (TODO: check if certificate already exists and is about to expire)
|
||||||
<domains.txt sed 's/^\s*//g;s/\s*$//g' | grep -v '^#' | grep -v '^$' | while read line; do
|
<domains.txt sed 's/^\s*//g;s/\s*$//g' | grep -v '^#' | grep -v '^$' | while read -r line; do
|
||||||
sign_domain $line
|
sign_domain $line
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user