check/find
This commit is contained in:
parent
e9904f2965
commit
df136cbad5
1 changed files with 10 additions and 8 deletions
18
sh/main.sh
18
sh/main.sh
|
@ -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}"
|
||||||
|
|
Loading…
Reference in a new issue