Skip to content

Commit

Permalink
Use the right command for the client version
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v committed Feb 23, 2021
1 parent 622bf2e commit 67998d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .ci/scripts/install-kubectl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ KUBECTL_CMD="${HOME}/bin/kubectl"
if command -v kubectl
then
echo "Found kubectl. Checking version.."
FOUND_KUBECTL_VERSION=$(kubectl version --short 2>&1 >/dev/null | grep -i client | awk '{print $3}')
FOUND_KUBECTL_VERSION=$(kubectl version --client --short 2>&1 >/dev/null | awk '{print $3}')
if [ "${FOUND_KUBECTL_VERSION}" == "${K8S_VERSION}" ]
then
echo "Versions match. No need to install kubectl. Exiting."
Expand Down

0 comments on commit 67998d1

Please sign in to comment.