Skip to content

Commit

Permalink
Better io
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake Pearson committed Nov 21, 2019
1 parent 0fc3c27 commit 9401952
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion k
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ fi
# Ensure we have at least 1 kubectl version
KNOWN_VERSION="v1.16.3"
KNOWN_TARGET=$KX_PATH/kubectl-$KNOWN_VERSION
if [ ! -f "$KNOWN_TARGET" ]; then
KUBECTL_PATH=$(command -v kubectl)
if [ ! -z $KUBECTL_PATH ]; then
KNOWN_TARGET=$KUBECTL_PATH
elif [ ! -f "$KNOWN_TARGET" ]; then
curl -L -o $KNOWN_TARGET "https://storage.googleapis.com/kubernetes-release/release/$KNOWN_VERSION/bin/$OS/amd64/kubectl"
chmod +x $KNOWN_TARGET
fi
Expand Down

0 comments on commit 9401952

Please sign in to comment.