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