Skip to content

Commit

Permalink
Merge pull request kubernetes-sigs#151 from humblec/cm
Browse files Browse the repository at this point in the history
Replace `which` command ( non standard)  with `command -v` builtin
  • Loading branch information
k8s-ci-robot authored May 17, 2021
2 parents 7b96bea + 48e71f0 commit 2d61d3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion verify-shellcheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ done < <(find . -name "*.sh" \
# detect if the host machine has the required shellcheck version installed
# if so, we will use that instead.
HAVE_SHELLCHECK=false
if which shellcheck &>/dev/null; then
if command -v shellcheck &>/dev/null; then
detected_version="$(shellcheck --version | grep 'version: .*')"
if [[ "${detected_version}" = "version: ${SHELLCHECK_VERSION}" ]]; then
HAVE_SHELLCHECK=true
Expand Down

0 comments on commit 2d61d3b

Please sign in to comment.