diff --git a/sh/core/code.sh b/sh/core/code.sh index 3b62ca7..60206e7 100644 --- a/sh/core/code.sh +++ b/sh/core/code.sh @@ -228,11 +228,14 @@ rwx_code_check() { # check syntax rwx_log rwx_shellcheck "${rwx_main_root}" + rwx_log + [ -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}" }