From a10abc5598b1ea9a6fddfc6a6a7bea7a9da305e7 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sat, 12 Jul 2025 01:19:10 +0200 Subject: [PATCH] shfmt/user --- sh/core/code.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/sh/core/code.sh b/sh/core/code.sh index df911bf..3b62ca7 100644 --- a/sh/core/code.sh +++ b/sh/core/code.sh @@ -225,12 +225,15 @@ rwx_code_modules() { # check source code rwx_code_check() { - # check format - rwx_log - rwx_shfmt "${rwx_main_root}" # check syntax rwx_log rwx_shellcheck "${rwx_main_root}" + # check format + rwx_log + rwx_shfmt "${rwx_main_root}" + rwx_log + [ -e "${rwx_code_root}" ] && + rwx_shfmt "${rwx_code_root}" } # fetch matching doc for given name