summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-09-05 12:11:23 +0200
committerErich Eckner <git@eckner.net>2018-09-05 12:13:07 +0200
commit0eecec43af96dd9d7917d12f6c031e8c98a769d9 (patch)
tree823f947287db032d4a84d43341ef74be64a976bb
parenteca654f372c4b10508121dc056d6c0939d4685b9 (diff)
downloadbuilder-0eecec43af96dd9d7917d12f6c031e8c98a769d9.tar.xz
lib/load-configuration: do not "set -e" if sourced from shell
-rwxr-xr-xlib/load-configuration1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/load-configuration b/lib/load-configuration
index fc766a5..6a94976 100755
--- a/lib/load-configuration
+++ b/lib/load-configuration
@@ -25,6 +25,7 @@ fi
# dirty hack to get this stuff debugable from a bash
if [ "x${0##*/}" = "x-bash" ] || [ "x${0##*/}" = "xbash" ] || [ "x${0##*/}" = "xdash" ]; then
base_dir=$(pwd)
+ set +e
else
base_dir=$(printf '%s/..' "$(dirname "$(readlink -f "$0")")")
fi