+shfmt
This commit is contained in:
parent
1572a779ae
commit
321070d5cc
1 changed files with 4 additions and 2 deletions
|
@ -1,11 +1,13 @@
|
|||
sh_shellcheck() {
|
||||
local root="${1}"
|
||||
local file module modules
|
||||
local file module modules path
|
||||
file="$(mktemp)"
|
||||
modules="$(sh_find_sh "${root}")"
|
||||
_sh_ifs_new
|
||||
for module in ${modules}; do
|
||||
echo ". \"${root}/${module}\"" >>"${file}"
|
||||
path="${root}/${module}"
|
||||
shfmt --diff "${path}"
|
||||
echo ". \"${path}\"" >>"${file}"
|
||||
done
|
||||
_sh_ifs_pop
|
||||
shellcheck \
|
||||
|
|
Loading…
Reference in a new issue