chore(shellcheck): use `git grep` to search only tracked files

This commit is contained in:
Thales Macedo Garitezi 2021-12-28 16:49:24 -03:00
parent 0020cf592f
commit fe444bf134
No known key found for this signature in database
GPG Key ID: DD279F8152A9B6DD
1 changed files with 1 additions and 5 deletions

View File

@ -6,11 +6,7 @@ target_files=()
while IFS='' read -r line;
do
target_files+=("$line");
done < <(grep -r -l \
--exclude-dir=.git \
--exclude-dir=_build \
--exclude-dir=deps \
"^#!/bin/" .)
done < <(git grep -r -l "^#!/bin/" .)
return_code=0
for i in "${target_files[@]}"; do
echo checking "$i" ...