sh/bash.d/main.sh

15 lines
262 B
Bash
Raw Normal View History

2023-05-09 20:09:01 +00:00
#! /usr/bin/env bash
PATH="$(realpath "${BASH_SOURCE[0]}")"
ROOT="$(dirname "${PATH}")"
2023-05-09 20:15:40 +00:00
function main {
local module
for module in "${ROOT}"/*.sh ; do
if [ "${module}" != "${PATH}" ] ; then
source "${module}"
fi
done
}
2023-05-09 20:09:01 +00:00
2023-05-09 20:15:40 +00:00
main