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
PATH="$(realpath "${BASH_SOURCE[0]}")"
ROOT="$(dirname "${PATH}")"
FILE="$(realpath "${BASH_SOURCE[0]}")"
ROOT="$(dirname "${FILE}")"
function main {
local module
for module in "${ROOT}"/*.sh ; do
if [ "${module}" != "${PATH}" ] ; then
if [ "${module}" != "${FILE}" ] ; then
source "${module}"
fi
done