main_source_

This commit is contained in:
Marc Beninca 2024-11-15 19:06:14 +01:00
parent 6ce158712d
commit d7bf240ba0
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -10,7 +10,7 @@ main_link_bashrc() {
ln --symbolic "${MAIN_USERS_FILE}" "${file}" ln --symbolic "${MAIN_USERS_FILE}" "${file}"
} }
main_import_directory() { main_source_directory() {
local path="${1}" local path="${1}"
if [ -d "${path}" ]; then if [ -d "${path}" ]; then
local count ifs module modules local count ifs module modules
@ -38,7 +38,7 @@ main_import_directory() {
fi fi
} }
main_import_file() { main_source_file() {
local path="${1}" local path="${1}"
if [ -f "${path}" ]; then if [ -f "${path}" ]; then
main_import_directory "$(dirname "${path}")" main_import_directory "$(dirname "${path}")"
@ -48,6 +48,6 @@ main_import_file() {
fi fi
} }
main_import_file "${ENV}" main_source_file "${ENV}"
main_import_directory ~/shell main_source_directory ~/shell