This commit is contained in:
Marc Beninca 2024-11-29 12:17:39 +01:00
parent 1572a779ae
commit 321070d5cc
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

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