summaryrefslogtreecommitdiff
path: root/lib/load-configuration
diff options
context:
space:
mode:
Diffstat (limited to 'lib/load-configuration')
-rwxr-xr-xlib/load-configuration4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/load-configuration b/lib/load-configuration
index 8426b78..ab0a183 100755
--- a/lib/load-configuration
+++ b/lib/load-configuration
@@ -47,6 +47,10 @@ fi
if [ -z "${base_dir}" ]; then
base_dir=$(printf '%s/..' "$(dirname "$(readlink -f "$0")")")
+ if printf '%s\n' "${0}" \
+ | grep -qx '.*/intention\.[0-9]\+'; then
+ base_dir="${base_dir}/.."
+ fi
fi
base_dir=$(