fmt
This commit is contained in:
parent
b85e5768a8
commit
163ff926cd
1 changed files with 15 additions and 14 deletions
29
sh/main.sh
29
sh/main.sh
|
@ -129,22 +129,23 @@ rwx_main() {
|
|||
fi
|
||||
# user root
|
||||
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
|
||||
"bash" | \
|
||||
"dash" | \
|
||||
"sh") ;;
|
||||
"dash" | \
|
||||
"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 name
|
||||
|
|
Loading…
Reference in a new issue