source/check
This commit is contained in:
parent
35626d1104
commit
d2ee4678d7
1 changed files with 11 additions and 0 deletions
11
sh/main.sh
11
sh/main.sh
|
@ -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}" |
|
||||||
|
|
Loading…
Reference in a new issue