Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-06-19 11:02:25 +0200
committerErich Eckner <git@eckner.net>2019-06-19 11:02:25 +0200
commit372894a0ff29c29e3ab4191dba942bc7584cb3c5 (patch)
tree0a7071bbe129ffaa1457b51b6b550834ff2959ba
parent9b9f41cbc6033cc40d41b59025325fab339eb61c (diff)
lib/load-configuration: canonicalize base_dir, so we can search for it in ~/.ssh/authorized_keys
-rwxr-xr-xlib/load-configuration4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/load-configuration b/lib/load-configuration
index 6005b6c..8da872a 100755
--- a/lib/load-configuration
+++ b/lib/load-configuration
@@ -34,6 +34,10 @@ if [ -z "${base_dir}" ]; then
base_dir=$(printf '%s/..' "$(dirname "$(readlink -f "$0")")")
fi
+base_dir=$(
+ readlink -e "${base_dir}"
+)
+
work_dir="${base_dir}/work"
# shellcheck source=../lib/common-functions