source bash relatively

This commit is contained in:
Marc Beninca 2023-05-09 22:09:01 +02:00
parent 596e9b86c2
commit a4697a41fa

View file

@ -1,3 +1,9 @@
for file in /etc/bash.d/*.sh ; do #! /usr/bin/env bash
PATH="$(realpath "${BASH_SOURCE[0]}")"
ROOT="$(dirname "${PATH}")"
DIRECTORY="${ROOT}/bash.d"
for file in "${DIRECTORY}"/*.sh ; do
source "${file}" source "${file}"
done done