Skip to content

Commit cc73ec2

Browse files
josephpeacockJoe Peacock
andauthored
Fixing broken method for downloading kustomize (#138)
* Fixing broken method for downloading kustomize Signed-off-by: Joe Peacock <[email protected]> * Retrying Signed-off-by: Joe Peacock <[email protected]> * Retrying Signed-off-by: Joe Peacock <[email protected]> * Retrying Signed-off-by: Joe Peacock <[email protected]> Co-authored-by: Joe Peacock <[email protected]>
1 parent 2ba71f4 commit cc73ec2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,11 @@ download-kustomize:
120120
curl -s https://api.github.com/repos/kubernetes-sigs/kustomize/releases |\
121121
grep browser_download |\
122122
grep $(OPSYS) |\
123-
grep kustomize_kustomize |\
124-
head -n1 |\
125123
cut -d '"' -f 4 |\
126-
xargs curl -O -L
127-
mv kustomize_kustomize.*_$(OPSYS)_amd64 kustomize
124+
grep /kustomize/v |\
125+
sort | tail -n 1 |\
126+
xargs curl -s -O -L
127+
tar xzf ./kustomize_v*_${OPSYS}_amd64.tar.gz
128128
chmod u+x kustomize
129129

130130
gen-yaml:

0 commit comments

Comments
 (0)