source bash relatively
This commit is contained in:
parent
596e9b86c2
commit
a4697a41fa
1 changed files with 7 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue