Skip to content

Commit

Permalink
tweaked grep call
Browse files Browse the repository at this point in the history
  • Loading branch information
fearphage committed Mar 1, 2019
1 parent b220b29 commit bb5dbad
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ request() {
suffix=''
fi

>&2 echo "DEBUG: \$1 = $1 ; \$method = $method ; \$suffix = $suffix"

curl \
--location \
--show-error \
Expand All @@ -72,7 +70,7 @@ run_shellcheck() {

for ext in bash sh; do
# shellcheck disable=SC2013
for file in $(grep -il "#\!\(/usr/bin/env \|/bin/\)$ext" --exclude-dir ".git" --exclude-dir "node_modules" --exclude "*.txt" --exclude "*.sh"); do
for file in $(grep -iRl "#\!\(/usr/bin/env \|/bin/\)$ext" --exclude-dir ".git" --exclude-dir "node_modules" --exclude "*.txt" --exclude "*.sh"); do
shellcheck --format=json --shell=$ext "$file"
done
done) | jq --slurp flatten
Expand Down

0 comments on commit bb5dbad

Please sign in to comment.