+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() {
|
sh_shellcheck() {
|
||||||
local root="${1}"
|
local root="${1}"
|
||||||
local file module modules
|
local file module modules path
|
||||||
file="$(mktemp)"
|
file="$(mktemp)"
|
||||||
modules="$(sh_find_sh "${root}")"
|
modules="$(sh_find_sh "${root}")"
|
||||||
_sh_ifs_new
|
_sh_ifs_new
|
||||||
for module in ${modules}; do
|
for module in ${modules}; do
|
||||||
echo ". \"${root}/${module}\"" >>"${file}"
|
path="${root}/${module}"
|
||||||
|
shfmt --diff "${path}"
|
||||||
|
echo ". \"${path}\"" >>"${file}"
|
||||||
done
|
done
|
||||||
_sh_ifs_pop
|
_sh_ifs_pop
|
||||||
shellcheck \
|
shellcheck \
|
||||||
|
|
Loading…
Reference in a new issue