source/check

This commit is contained in:
Marc Beninca 2024-11-25 13:28:42 +01:00
parent 35626d1104
commit d2ee4678d7
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -8,6 +8,17 @@ SH_MAIN="${SH_ROOT}/main.sh"
[ -n "${ENV}" ] || export ENV="${SH_MAIN}" [ -n "${ENV}" ] || export ENV="${SH_MAIN}"
sh_source_check() {
local file=".shellcheck.sh"
find \
-type "f" \
-name "*.sh" \
-printf ". \"%P\"\n" \
>"${file}"
shellcheck "${file}"
rm "${file}"
}
_sh_main_commands() { _sh_main_commands() {
local file="${1}" local file="${1}"
grep "()" "${file}" | grep "()" "${file}" |