Home : Fix bin bash module loading.

This commit is contained in:
Dmitry Voronin 2024-03-21 00:31:45 +03:00
parent fb61394010
commit 66e7fd88ea
2 changed files with 2 additions and 12 deletions

View file

@ -1,12 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
if [[ -z ${BASH_PATH} ]]; then
echo "BASH_PATH not defined."
exit 1
fi
# Source modules. # Source modules.
for file in ${BASH_PATH}/module/*.sh; do for file in /etc/bash/module/*.sh; do
source "${file}" source "${file}"
done done

View file

@ -1,12 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
if [[ -z ${BASH_PATH} ]]; then
echo "BASH_PATH not defined."
exit 1
fi
# Source modules. # Source modules.
for file in ${BASH_PATH}/module/*.sh; do for file in /etc/bash/module/*.sh; do
source "${file}" source "${file}"
done done