Skip to content

Commit 062f0b0

Browse files
committed
feat: use command to avoid coverage
1 parent 7f16e04 commit 062f0b0

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

pre_commit_hooks/shell-lint.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ set -o nounset
77
DEBUG=${DEBUG:=0}
88
[[ $DEBUG -eq 1 ]] && set -o xtrace
99

10-
echo 'Begin shellcheck'
11-
12-
if ! which shellcheck &>/dev/null; then
10+
if ! command which shellcheck &>/dev/null; then
1311
>&2 echo 'shellcheck command not found'
1412
exit 1
1513
fi

0 commit comments

Comments
 (0)