From 323dc12ec01c2f52ebc0ebc4e6c0e2133cd9277a Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Fri, 5 May 2017 12:34:39 +0200 Subject: conf/default.conf: add some hack to get the scripts running in a modular fashion and therefor debugable --- conf/default.conf | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'conf/default.conf') diff --git a/conf/default.conf b/conf/default.conf index 548bd86..dfc9905 100755 --- a/conf/default.conf +++ b/conf/default.conf @@ -4,7 +4,12 @@ set -e -base_dir="$(dirname "$(readlink -f "$0")")/.." +# dirty hack to get this stuff debugable from a bash +if [ "x$0" == "x-bash" ]; then + base_dir="$(pwd)" +else + base_dir="$(dirname "$(readlink -f "$0")")/.." +fi . "${base_dir}/bin/common-functions" -- cgit v1.2.3