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