diff --git a/bash/main.sh b/bash/main.sh index 797aed1..4442460 100644 --- a/bash/main.sh +++ b/bash/main.sh @@ -13,14 +13,14 @@ main_link_bashrc() { # import modules main_import_modules() { local file="${1}" - if [ -f "${file}" ] ; then + if [ -f "${file}" ]; then local path="$(realpath "${file}")" local root="$(dirname "${path}")" local IFS=$'\n' local modules=($(find "${root}" -type "f" -name "*.sh" | sort)) local module - for module in "${modules[@]}" ; do - if [ "${module}" != "${path}" ] ; then + for module in "${modules[@]}"; do + if [ "${module}" != "${path}" ]; then . "${module}" fi done