This commit is contained in:
Marc Beninca 2024-11-29 22:57:21 +01:00
parent c60ab4f5f5
commit 9eefdb31f8
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F
3 changed files with 4 additions and 4 deletions

View file

@ -1,4 +1,4 @@
rwx_shellcheck_check() {
rwx_shellcheck() {
local root="${1}"
local file module modules path
file="$(mktemp)"

View file

@ -1,4 +1,4 @@
rwx_shfmt_check() {
rwx_shfmt() {
local root="${1}"
shfmt --diff "${root}"
}

View file

@ -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