From 0593181f1013f37ad87f654eb3e1676bbc95b193 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Wed, 9 Jul 2025 02:10:12 +0200 Subject: [PATCH] lint --- sh/main.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/sh/main.sh b/sh/main.sh index 297cdbb..ed09edf 100755 --- a/sh/main.sh +++ b/sh/main.sh @@ -34,14 +34,13 @@ RWX_ROOT_SYSTEM="/usr/local/lib/${RWX_SELF_NAME}" #| sort rwx_main_find() { local root="${1}" - local file="${2}" find \ "${root}" \ -name "*.sh" \ -type "f" \ -printf "%P\n" | - sed "s|\\.[^.]*\$||" | - sort + sed "s|\\.[^.]*\$||" | + sort } # ╭──────┬───────╮ @@ -108,13 +107,12 @@ EOF rwx_main_cache() { local root="${1}" local module="${2}" - local name="${module}" local path="${root}/${module}.sh" local text text="$(cat "${path}")" # all source code _rwx_code="${_rwx_code}\ -#. ${name} +#. ${module} ${text} " }