check sourced

This commit is contained in:
Marc Beninca 2024-11-25 13:56:01 +01:00
parent e029b00cae
commit 84f6922b6f
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -15,7 +15,9 @@ sh_source_check() {
-name "*.sh" \ -name "*.sh" \
-printf ". \"%P\"\n" \ -printf ". \"%P\"\n" \
>"${file}" >"${file}"
shellcheck "${file}" shellcheck \
--check-sourced \
"${file}"
rm "${file}" rm "${file}"
} }