Skip to content

Commit 9ceb2d6

Browse files
authored
plugin: fix 'make run' target to downloads from correct helm-operator binary URL (#76)
1 parent 7ea9161 commit 9ceb2d6

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

pkg/plugins/v1/scaffolds/internal/templates/makefile.go

+2-4
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,6 @@ PATH := $(PATH):$(PWD)/bin
103103
SHELL := env PATH=$(PATH) /bin/sh
104104
OS = $(shell uname -s | tr '[:upper:]' '[:lower:]')
105105
ARCH = $(shell uname -m | sed 's/x86_64/amd64/')
106-
OSOPER = $(shell uname -s | tr '[:upper:]' '[:lower:]' | sed 's/darwin/apple-darwin/' | sed 's/linux/linux-gnu/')
107-
ARCHOPER = $(shell uname -m )
108106
109107
kustomize:
110108
ifeq (, $(shell which kustomize 2>/dev/null))
@@ -123,8 +121,8 @@ ifeq (, $(shell which helm-operator 2>/dev/null))
123121
@{ \
124122
set -e ;\
125123
mkdir -p bin ;\
126-
curl -LO https://github.com/joelanford/helm-operator/releases/download/{{ .HelmOperatorVersion }}/helm-operator-{{ .HelmOperatorVersion }}-$(ARCHOPER)-$(OSOPER) ;\
127-
mv helm-operator-{{ .HelmOperatorVersion }}-$(ARCHOPER)-$(OSOPER) ./bin/helm-operator ;\
124+
curl -LO https://github.com/joelanford/helm-operator/releases/download/{{ .HelmOperatorVersion }}/helm-operator_$(OS)_$(ARCH) ;\
125+
mv helm-operator_$(OS)_$(ARCH) ./bin/helm-operator ;\
128126
chmod +x ./bin/helm-operator ;\
129127
}
130128
HELM_OPERATOR=$(realpath ./bin/helm-operator)

0 commit comments

Comments
 (0)