mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-05-17 18:25:26 +00:00
allow downloading older releases
This commit is contained in:
@@ -10,8 +10,11 @@
|
|||||||
#
|
#
|
||||||
# Fails if the file already exists.
|
# Fails if the file already exists.
|
||||||
|
|
||||||
|
release_url=https://api.github.com/repos/kubernetes-sigs/kustomize/releases
|
||||||
|
|
||||||
if [ -n "$1" ]; then
|
if [ -n "$1" ]; then
|
||||||
version=v$1
|
version=v$1
|
||||||
|
release_url=https://api.github.com/repos/kubernetes-sigs/kustomize/releases/tags/kustomize%2F$version
|
||||||
fi
|
fi
|
||||||
|
|
||||||
where=$PWD
|
where=$PWD
|
||||||
@@ -41,7 +44,7 @@ elif [[ "$OSTYPE" == darwin* ]]; then
|
|||||||
opsys=darwin
|
opsys=darwin
|
||||||
fi
|
fi
|
||||||
|
|
||||||
curl -s https://api.github.com/repos/kubernetes-sigs/kustomize/releases |\
|
curl -s $release_url |\
|
||||||
grep browser_download |\
|
grep browser_download |\
|
||||||
grep $opsys |\
|
grep $opsys |\
|
||||||
cut -d '"' -f 4 |\
|
cut -d '"' -f 4 |\
|
||||||
|
|||||||
Reference in New Issue
Block a user