Skip to content

Commit 2d61d3b

Browse files
authored
Merge pull request #151 from humblec/cm
Replace `which` command ( non standard) with `command -v` builtin
2 parents 7b96bea + 48e71f0 commit 2d61d3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: verify-shellcheck.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ done < <(find . -name "*.sh" \
8484
# detect if the host machine has the required shellcheck version installed
8585
# if so, we will use that instead.
8686
HAVE_SHELLCHECK=false
87-
if which shellcheck &>/dev/null; then
87+
if command -v shellcheck &>/dev/null; then
8888
detected_version="$(shellcheck --version | grep 'version: .*')"
8989
if [[ "${detected_version}" = "version: ${SHELLCHECK_VERSION}" ]]; then
9090
HAVE_SHELLCHECK=true

0 commit comments

Comments
 (0)