summaryrefslogtreecommitdiff
path: root/conf/default.conf
diff options
context:
space:
mode:
Diffstat (limited to 'conf/default.conf')
-rwxr-xr-xconf/default.conf7
1 files changed, 6 insertions, 1 deletions
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"