This commit is contained in:
Marc Beninca 2023-05-15 18:56:12 +02:00
parent 3ffc60e4f1
commit 80f19583ce

View file

@ -14,7 +14,8 @@ function main_link_bashrc {
function main_import_modules { function main_import_modules {
local file="${1}" local file="${1}"
if [ -f "${file}" ] ; then if [ -f "${file}" ] ; then
local root="$(dirname "${file}")" local path="$(realpath "${file}")"
local root="$(dirname "${path}")"
local IFS=$'\n' local IFS=$'\n'
local modules=($(find "${root}" -type 'f' -name '*.sh')) local modules=($(find "${root}" -type 'f' -name '*.sh'))
local module local module