From b6e461f33043cc1c0764685c63d0d83967110e2d Mon Sep 17 00:00:00 2001 From: Torge Matthies Date: Sun, 6 Feb 2022 00:19:48 +0100 Subject: [PATCH] Allow returning an error from the settings file. Ideally any error inside the settings file would return an error here, but set -e would make the entire shell exit immediately. --- scripts/common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/common.sh b/scripts/common.sh index 8bc6239..a34da5b 100644 --- a/scripts/common.sh +++ b/scripts/common.sh @@ -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 }