sort,shfmt
This commit is contained in:
parent
47f108f0a3
commit
d517b783d7
1 changed files with 9 additions and 8 deletions
17
sh/main.sh
17
sh/main.sh
|
@ -11,13 +11,13 @@ SH_MAIN="${SH_ROOT}/main.sh"
|
||||||
sh_source_check() {
|
sh_source_check() {
|
||||||
local file=".shellcheck.sh"
|
local file=".shellcheck.sh"
|
||||||
find \
|
find \
|
||||||
"." \
|
"." \
|
||||||
-type "f" \
|
-type "f" \
|
||||||
-name "*.sh" \
|
-name "*.sh" \
|
||||||
-not \
|
-not \
|
||||||
-name "${file}" \
|
-name "${file}" \
|
||||||
-printf ". \"%P\"\n" \
|
-printf ". \"%P\"\n" \
|
||||||
>"${file}"
|
>"${file}"
|
||||||
shellcheck \
|
shellcheck \
|
||||||
--check-sourced \
|
--check-sourced \
|
||||||
"${file}"
|
"${file}"
|
||||||
|
@ -36,7 +36,8 @@ sh_source_find() {
|
||||||
-not \
|
-not \
|
||||||
-name "${file}"
|
-name "${file}"
|
||||||
find "${@}" \
|
find "${@}" \
|
||||||
-printf "%P\n"
|
-printf "%P\n" |
|
||||||
|
sort
|
||||||
}
|
}
|
||||||
|
|
||||||
_sh_main_commands() {
|
_sh_main_commands() {
|
||||||
|
|
Loading…
Reference in a new issue