chore(shellcheck): use `git grep` to search only tracked files
This commit is contained in:
parent
0020cf592f
commit
fe444bf134
|
@ -6,11 +6,7 @@ target_files=()
|
||||||
while IFS='' read -r line;
|
while IFS='' read -r line;
|
||||||
do
|
do
|
||||||
target_files+=("$line");
|
target_files+=("$line");
|
||||||
done < <(grep -r -l \
|
done < <(git grep -r -l "^#!/bin/" .)
|
||||||
--exclude-dir=.git \
|
|
||||||
--exclude-dir=_build \
|
|
||||||
--exclude-dir=deps \
|
|
||||||
"^#!/bin/" .)
|
|
||||||
return_code=0
|
return_code=0
|
||||||
for i in "${target_files[@]}"; do
|
for i in "${target_files[@]}"; do
|
||||||
echo checking "$i" ...
|
echo checking "$i" ...
|
||||||
|
|
Loading…
Reference in New Issue