Skip to content

Commit

Permalink
Merge pull request #151 from beelbrecht/spaces_in_configpath
Browse files Browse the repository at this point in the history
allow spaces in path to additional configuration file
  • Loading branch information
lukas2511 committed Mar 9, 2016
2 parents 8085076 + e2d8bfa commit 429c525
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions letsencrypt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,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
Expand Down

0 comments on commit 429c525

Please sign in to comment.