Skip to content

Commit e1f3759

Browse files
committed
update check_yq target
1 parent 72524ca commit e1f3759

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Makefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,7 @@ $(LOCALBIN):
224224

225225
## Tool Binaries
226226
KUSTOMIZE ?= $(LOCALBIN)/kustomize
227+
YQ ?= $(LOCALBIN)/yq
227228
CONTROLLER_GEN ?= $(LOCALBIN)/controller-gen
228229
ENVTEST ?= $(LOCALBIN)/setup-envtest
229230
OPENSHIFT-GOIMPORTS ?= $(LOCALBIN)/openshift-goimports
@@ -395,9 +396,9 @@ output_dir := 'config/crd/'
395396

396397
.PHONY: check_yq
397398
check_yq:
398-
@command -v yq >/dev/null 2>&1 || (echo "Installing wget..."; yum install -y wget)
399-
@command -v yq >/dev/null 2>&1 || (echo "Installing yq..."; wget https://github.com/mikefarah/yq/releases/download/v4.2.0/yq_linux_amd64.tar.gz -O - |\
400-
tar xz && mv yq_linux_amd64 /usr/bin/yq)
399+
@command -v $(LOCALBIN)/wget >/dev/null 2>&1 || (echo "Installing wget..."; yum install -y wget)
400+
@command -v $(YQ) >/dev/null 2>&1 || (echo "Installing yq..."; wget https://github.com/mikefarah/yq/releases/download/v4.2.0/yq_linux_amd64.tar.gz -O - |\
401+
tar xz && mv yq_linux_amd64 $(YQ))
401402

402403
# this works on a MacOS by replacing awk with gawk
403404
.PHONY: split_yaml

0 commit comments

Comments
 (0)