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
|
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
|
||||||
|
|
Loading…
Add table
Reference in a new issue