check/find

This commit is contained in:
Marc Beninca 2024-11-25 15:33:18 +01:00
parent e9904f2965
commit df136cbad5
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -11,14 +11,16 @@ SH_MAIN="${SH_ROOT}/${SH_MAIN_NAME}"
sh_source_check() { sh_source_check() {
local file=".shellcheck.sh" local file=".shellcheck.sh"
find \ local ifs module modules
"." \ modules="$(sh_source_find "." "${file}")"
-type "f" \ rm --force "${file}"
-name "*.sh" \ ifs="${IFS}"
-not \ IFS="
-name "${file}" \ "
-printf ". \"%P\"\n" \ for module in ${modules}; do
>"${file}" echo ". \"${module}\"" >>"${file}"
done
IFS="${ifs}"
shellcheck \ shellcheck \
--check-sourced \ --check-sourced \
"${file}" "${file}"