Skip to content

Instantly share code, notes, and snippets.

@estahn
Created February 22, 2018 02:17
Show Gist options
  • Save estahn/572833952d4567417e88a74857ea77d7 to your computer and use it in GitHub Desktop.
Save estahn/572833952d4567417e88a74857ea77d7 to your computer and use it in GitHub Desktop.
#!/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