Created
February 22, 2018 02:17
-
-
Save estahn/572833952d4567417e88a74857ea77d7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
KUBECTL=$(which kubectl) | |
echo "CURRENT VERSION:" | |
kubectl version | |
echo "" | |
curl -o ${KUBECTL} -LO https://storage.googleapis.com/kubernetes-release/release/`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/darwin/amd64/kubectl | |
chmod 755 ${KUBECTL} | |
echo "" | |
echo "UPDATED VERSION:" | |
kubectl version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment