sh/bash.d/main.sh
2023-05-09 22:15:40 +02:00

14 lines
262 B
Bash

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