diff --git a/bash/main.sh b/bash/main.sh index bbfcc87..c12cdf8 100644 --- a/bash/main.sh +++ b/bash/main.sh @@ -14,8 +14,10 @@ main_link_bashrc() { main_import_modules() { local file="${1}" if [ -f "${file}" ]; then - local path="$(realpath "${file}")" - local root="$(dirname "${path}")" + local path + local root + path="$(realpath "${file}")" + root="$(dirname "${path}")" local IFS=$'\n' local modules=($(find "${root}" -type "f" -name "*.sh" | sort)) local module