From 146be515f66232eb8c8129d0292eae7f07dbd2cb Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 30 Jan 2020 13:21:30 +0100 Subject: lib/load-configuration: set correct base_dir for running intentions --- lib/load-configuration | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib') 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=$( -- cgit v1.2.3-70-g09d2