diff --git a/hack/latest-kind-images.sh b/hack/latest-kind-images.sh index 9a921789c..2b5e91878 100755 --- a/hack/latest-kind-images.sh +++ b/hack/latest-kind-images.sh @@ -25,7 +25,7 @@ TAGS=$(mktemp) trap 'rm -f -- "$TAGS"' EXIT -if ! which $CRANE >/dev/null 2>&1; then +if ! command -v $CRANE >/dev/null 2>&1; then echo -e "Couldn't find crane. Try running:\ngo install github.com/google/go-containerregistry/cmd/crane@latest" >&2 exit 1 fi