diff --git a/verify-shellcheck.sh b/verify-shellcheck.sh index fd28021a..664b919a 100755 --- a/verify-shellcheck.sh +++ b/verify-shellcheck.sh @@ -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