sh/bash/main.sh
2023-05-09 23:25:21 +02:00

14 lines
262 B
Bash

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