shell-base/modules/scripting/source.lib
David Kebler 398ae39a07 fixing bundler
move some module code to new modules
2024-02-16 23:50:36 -08:00

17 lines
No EOL
323 B
Bash

#!/bin/bash
source_dir () {
# BASH_DEBUG=source_dir
module_load find
debug source_dir passed arguments: $*
debug function: source_dir
local FILES
FILES=$(_find -l "$@") # find function
# echo $FILES >&2
[[ $? -ne 0 ]] && return 1
for f in $FILES; do
debug sourcing: $f >&2
source "$f"
done
}