We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
which
command -v
1 parent 7b96bea commit 48e71f0Copy full SHA for 48e71f0
verify-shellcheck.sh
@@ -84,7 +84,7 @@ done < <(find . -name "*.sh" \
84
# detect if the host machine has the required shellcheck version installed
85
# if so, we will use that instead.
86
HAVE_SHELLCHECK=false
87
-if which shellcheck &>/dev/null; then
+if command -v shellcheck &>/dev/null; then
88
detected_version="$(shellcheck --version | grep 'version: .*')"
89
if [[ "${detected_version}" = "version: ${SHELLCHECK_VERSION}" ]]; then
90
HAVE_SHELLCHECK=true
0 commit comments