Skip to content

Commit

Permalink
Allow returning an error from the settings file.
Browse files Browse the repository at this point in the history
Ideally any error inside the settings file would return an error here,
but set -e would make the entire shell exit immediately.
  • Loading branch information
openglfreak committed Feb 6, 2022
1 parent 3ae8143 commit b6e461f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ settings_found=false
load_settings_file() {
if [ -e "$1" ]; then
# shellcheck source=settings.conf
. "$1"
. "$1" || return
settings_found=true
fi
}
Expand Down

0 comments on commit b6e461f

Please sign in to comment.