sh/bash.d/main.sh
2023-05-09 22:58:36 +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