From 5346091e7b337a029338c27c7be893c6f39c42f6 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Fri, 4 Jul 2025 04:34:26 +0200 Subject: [PATCH] =?UTF-8?q?=E2=88=92ifs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sh/main.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/sh/main.sh b/sh/main.sh index 88e7d00..75036ef 100755 --- a/sh/main.sh +++ b/sh/main.sh @@ -93,16 +93,17 @@ rwx_source() { count=0 __rwx_log "" \ ". ${root}" - rwx_ifs_set - for module in $(rwx_find_shell "${root}" "${file}"); do + local modules="$(rwx_find_shell "${root}" "${file}")" + while IFS= read -r module; do count=$((count + 1)) __rwx_log "$(printf "%02d" "${count}") ${module%.sh}" # shellcheck disable=SC1090 . "${root}/${module}" # cache code rwx_cache "${root}" "${module}" - done - rwx_ifs_unset + done <