Преглед изворни кода

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

Thales Macedo Garitezi пре 4 година
родитељ
комит
fe444bf134
1 измењених фајлова са 1 додато и 5 уклоњено
  1. 1 5
      scripts/shellcheck.sh

+ 1 - 5
scripts/shellcheck.sh

@@ -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" ...