From ec1bb4bab29cfa3834c7512cc461061d2b9589c5 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sat, 12 Jul 2025 01:49:14 +0200 Subject: [PATCH 1/2] shellcheck/user --- sh/core/code.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sh/core/code.sh b/sh/core/code.sh index 3b62ca7..9c0e3ca 100644 --- a/sh/core/code.sh +++ b/sh/core/code.sh @@ -228,6 +228,8 @@ rwx_code_check() { # check syntax rwx_log rwx_shellcheck "${rwx_main_root}" + rwx_log + rwx_shellcheck "${rwx_code_root}" # check format rwx_log rwx_shfmt "${rwx_main_root}" From 99b092e04b75a213681bc096004a9a2bc4abb8f9 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sat, 12 Jul 2025 01:50:30 +0200 Subject: [PATCH 2/2] fix --- sh/core/code.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sh/core/code.sh b/sh/core/code.sh index 9c0e3ca..60206e7 100644 --- a/sh/core/code.sh +++ b/sh/core/code.sh @@ -229,12 +229,13 @@ rwx_code_check() { rwx_log rwx_shellcheck "${rwx_main_root}" rwx_log - rwx_shellcheck "${rwx_code_root}" + [ -d "${rwx_code_root}" ] && + rwx_shellcheck "${rwx_code_root}" # check format rwx_log rwx_shfmt "${rwx_main_root}" rwx_log - [ -e "${rwx_code_root}" ] && + [ -d "${rwx_code_root}" ] && rwx_shfmt "${rwx_code_root}" }