This commit is contained in:
Marc Beninca 2024-12-01 20:25:19 +01:00
parent b85e5768a8
commit 163ff926cd
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -129,22 +129,23 @@ rwx_main() {
fi fi
# user root # user root
rwx_source "$(rwx_self_user)" rwx_source "$(rwx_self_user)"
# 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
fi
case "$(rwx_shell)" in case "$(rwx_shell)" in
"bash" | \ "bash" | \
"dash" | \ "dash" | \
"sh") ;; "sh")
# 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
fi
;;
*) *)
local argument="${0}" local argument="${0}"
local name local name