]> git.ipfire.org Git - thirdparty/dehydrated.git/commitdiff
allow spaces in path to additional configuration file 151/head
authorBenjamin Albrecht <benjamin.albrecht@albit.de>
Sun, 21 Feb 2016 00:41:53 +0000 (01:41 +0100)
committerBenjamin Albrecht <benjamin.albrecht@albit.de>
Sun, 21 Feb 2016 00:41:53 +0000 (01:41 +0100)
letsencrypt.sh

index 99f559206e29f6f9b7d1d05262d825f0026668c3..89d09dc78d0e16fc96fbd40a0fae78be60931795 100755 (executable)
@@ -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