diff --git a/sh/main.sh b/sh/main.sh index e037089..bb7c2bc 100644 --- a/sh/main.sh +++ b/sh/main.sh @@ -8,6 +8,17 @@ SH_MAIN="${SH_ROOT}/main.sh" [ -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() { local file="${1}" grep "()" "${file}" |