source directly
This commit is contained in:
parent
247b6a7fed
commit
98056f2fb6
1 changed files with 9 additions and 4 deletions
|
@ -2,8 +2,13 @@
|
||||||
PATH="$(realpath "${BASH_SOURCE[0]}")"
|
PATH="$(realpath "${BASH_SOURCE[0]}")"
|
||||||
ROOT="$(dirname "${PATH}")"
|
ROOT="$(dirname "${PATH}")"
|
||||||
|
|
||||||
DIRECTORY="${ROOT}/bash.d"
|
function main {
|
||||||
|
local module
|
||||||
|
for module in "${ROOT}"/*.sh ; do
|
||||||
|
if [ "${module}" != "${PATH}" ] ; then
|
||||||
|
source "${module}"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
for file in "${DIRECTORY}"/*.sh ; do
|
main
|
||||||
source "${file}"
|
|
||||||
done
|
|
||||||
|
|
Loading…
Reference in a new issue