From 52593c95715cf289a75b9c1b78bba56c7fdb57b9 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sun, 27 Jul 2025 13:00:04 +0200 Subject: [PATCH] find with extension --- sh/core/code.sh | 4 ++-- sh/lint/shellcheck.sh | 2 +- sh/main.sh | 4 +--- sh/self.sh | 2 +- 4 files changed, 5 insertions(+), 7 deletions(-) diff --git a/sh/core/code.sh b/sh/core/code.sh index a9bea2c..c71a509 100644 --- a/sh/core/code.sh +++ b/sh/core/code.sh @@ -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 <>"${file}" done <