10 lines
151 B
Bash
10 lines
151 B
Bash
sourcefiles() {
|
|
if [ -d "$1" ]; then
|
|
for i in "${1}/"*; do
|
|
. "$1"
|
|
done
|
|
fi
|
|
}
|
|
|
|
sourcefiles /usr/local/etc/sh/shrc.d
|
|
|