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