This commit is contained in:
Marc Beninca 2023-05-09 22:58:36 +02:00
parent 7bb0eeecf1
commit 3343762acc

View file

@ -1,11 +1,11 @@
#! /usr/bin/env bash #! /usr/bin/env bash
PATH="$(realpath "${BASH_SOURCE[0]}")" FILE="$(realpath "${BASH_SOURCE[0]}")"
ROOT="$(dirname "${PATH}")" ROOT="$(dirname "${FILE}")"
function main { function main {
local module local module
for module in "${ROOT}"/*.sh ; do for module in "${ROOT}"/*.sh ; do
if [ "${module}" != "${PATH}" ] ; then if [ "${module}" != "${FILE}" ] ; then
source "${module}" source "${module}"
fi fi
done done