From 80f19583ce4f467e87490ef12fc89fea1c8a265c Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Mon, 15 May 2023 18:56:12 +0200 Subject: [PATCH] path --- bash/main.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bash/main.sh b/bash/main.sh index ad08f22..424a2ec 100644 --- a/bash/main.sh +++ b/bash/main.sh @@ -14,7 +14,8 @@ function main_link_bashrc { function main_import_modules { local file="${1}" if [ -f "${file}" ] ; then - local root="$(dirname "${file}")" + local path="$(realpath "${file}")" + local root="$(dirname "${path}")" local IFS=$'\n' local modules=($(find "${root}" -type 'f' -name '*.sh')) local module