diff --git a/sh/self.sh b/sh/self.sh index 00f15e7..639e87d 100644 --- a/sh/self.sh +++ b/sh/self.sh @@ -1,3 +1,17 @@ +# ╭──────┬───────╮ +# │ self │ check │ +# ╰──────┴───────╯ + +# check source code +rwx_self_check() { + # check format + rwx_log + rwx_shfmt "${RWX_ROOT_SYSTEM}" + # check syntax + rwx_log + rwx_shellcheck "${RWX_ROOT_SYSTEM}" +} + # ╭──────┬──────────╮ # │ self │ commands │ # ╰──────┴──────────╯ @@ -44,12 +58,6 @@ rwx_self_help() { rwx_self_init() { # run interactive extras if rwx_shell_interactive; then - # check format - rwx_log - rwx_shfmt "${RWX_ROOT_SYSTEM}" - # check syntax - rwx_log - rwx_shellcheck "${RWX_ROOT_SYSTEM}" # help rwx_log rwx_self_help