Home : Fix bin bash module loading.
This commit is contained in:
parent
fb61394010
commit
66e7fd88ea
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue