From e2d8bfa4c3090138e0a1bb8e62ecf75f79f47290 Mon Sep 17 00:00:00 2001 From: Benjamin Albrecht Date: Sun, 21 Feb 2016 01:41:53 +0100 Subject: [PATCH] allow spaces in path to additional configuration file --- letsencrypt.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/letsencrypt.sh b/letsencrypt.sh index 99f5592..89d09dc 100755 --- a/letsencrypt.sh +++ b/letsencrypt.sh @@ -89,13 +89,13 @@ load_config() { _exiterr "The path ${CONFIG_D} specified for CONFIG_D does not point to a directory." >&2 fi - for check_config_d in ${CONFIG_D}/*.sh; do + for check_config_d in "${CONFIG_D}"/*.sh; do if [[ ! -e "${check_config_d}" ]]; then echo "# !! WARNING !! Extra configuration directory ${CONFIG_D} exists, but no configuration found in it." >&2 break elif [[ -f "${check_config_d}" ]] && [[ -r "${check_config_d}" ]]; then echo "# INFO: Using additional config file ${check_config_d}" - . ${check_config_d} + . "${check_config_d}" else _exiterr "Specified additional config ${check_config_d} is not readable or not a file at all." >&2 fi -- 2.39.5