Skip to content

Commit 48e71f0

Browse files
committed
Replace which command ( non standard) with command -v builtin
Signed-off-by: Humble Chirammal <[email protected]>
1 parent 7b96bea commit 48e71f0

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)