Support dynamic resource selection
This commit is contained in:
parent
4cc2af055d
commit
0e61f5f32f
6 changed files with 29 additions and 11 deletions
|
|
@ -5,7 +5,10 @@ IFS=$'\n\t'
|
|||
|
||||
package=minikube
|
||||
repo=kubernetes/minikube
|
||||
resource=minikube-linux-amd64
|
||||
|
||||
minikube_resource() {
|
||||
echo "minikube-linux-amd64"
|
||||
}
|
||||
|
||||
install_minikube() {
|
||||
tempfile="$(mktemp)"
|
||||
|
|
@ -14,4 +17,4 @@ install_minikube() {
|
|||
mv "${tempfile}" "$(systemd-path user-binaries)"/minikube
|
||||
}
|
||||
|
||||
github_update "${package}" "${repo}" "${resource}" install_minikube
|
||||
github_update "${package}" "${repo}" minikube_resource install_minikube
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue