Skip to content

Commit

Permalink
feat: use command to avoid coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
detailyang committed May 22, 2019
1 parent 7f16e04 commit 062f0b0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pre_commit_hooks/shell-lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ set -o nounset
DEBUG=${DEBUG:=0}
[[ $DEBUG -eq 1 ]] && set -o xtrace

echo 'Begin shellcheck'

if ! which shellcheck &>/dev/null; then
if ! command which shellcheck &>/dev/null; then
>&2 echo 'shellcheck command not found'
exit 1
fi
Expand Down

0 comments on commit 062f0b0

Please sign in to comment.