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]}")"
|
||||
ROOT="$(dirname "${PATH}")"
|
||||
|
||||
DIRECTORY="${ROOT}/bash.d"
|
||||
|
||||
for file in "${DIRECTORY}"/*.sh ; do
|
||||
source "${file}"
|
||||
function main {
|
||||
local module
|
||||
for module in "${ROOT}"/*.sh ; do
|
||||
if [ "${module}" != "${PATH}" ] ; then
|
||||
source "${module}"
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
main
|
||||
|
|
Loading…
Reference in a new issue