lint
This commit is contained in:
parent
c60ab4f5f5
commit
9eefdb31f8
3 changed files with 4 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
|||
rwx_shellcheck_check() {
|
||||
rwx_shellcheck() {
|
||||
local root="${1}"
|
||||
local file module modules path
|
||||
file="$(mktemp)"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
rwx_shfmt_check() {
|
||||
rwx_shfmt() {
|
||||
local root="${1}"
|
||||
shfmt --diff "${root}"
|
||||
}
|
||||
|
|
|
@ -132,10 +132,10 @@ rwx_main() {
|
|||
if rwx_shell_interactive; then
|
||||
# check format
|
||||
rwx_log
|
||||
rwx_shfmt_check "${RWX_ROOT_SYSTEM}"
|
||||
rwx_shfmt "${RWX_ROOT_SYSTEM}"
|
||||
# check syntax
|
||||
rwx_log
|
||||
rwx_shellcheck_check "${RWX_ROOT_SYSTEM}"
|
||||
rwx_shellcheck "${RWX_ROOT_SYSTEM}"
|
||||
# help
|
||||
rwx_log
|
||||
rwx_self_help
|
||||
|
|
Loading…
Reference in a new issue