find with extension

This commit is contained in:
Marc Beninca 2025-07-27 13:00:04 +02:00
parent 9e3c268b1c
commit 52593c9571
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F
4 changed files with 5 additions and 7 deletions

View file

@ -289,10 +289,10 @@ rwx_code_main() {
# find user modules
rwx_code_modules_user="$(rwx_main_find "${rwx_code_root}")"
# source user modules
[ "${rwx_code_modules_user}" ] &&
[ -n "${rwx_code_modules_user}" ] &&
while IFS= read -r module; do
# shellcheck disable=SC1090
. "${rwx_code_root}/${module}.${RWX_MAIN_EXTENSION}"
. "${rwx_code_root}/${module}"
done <<EOF
${rwx_code_modules_user}
EOF