Skip to content

Commit

Permalink
Clean up some lints
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake Pearson committed Nov 21, 2019
1 parent 9401952 commit 905c4f3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions k
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ fi
KNOWN_VERSION="v1.16.3"
KNOWN_TARGET=$KX_PATH/kubectl-$KNOWN_VERSION
KUBECTL_PATH=$(command -v kubectl)
if [ ! -z $KUBECTL_PATH ]; then
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
curl -L -o "$KNOWN_TARGET" "https://storage.googleapis.com/kubernetes-release/release/$KNOWN_VERSION/bin/$OS/amd64/kubectl"
chmod +x "$KNOWN_TARGET"
fi

# Get the server version from the server if not cached
Expand All @@ -58,9 +58,9 @@ fi

TARGET=$KX_PATH/kubectl-$TARGET_VERSION

if [ ! -f $TARGET ]; then
curl -L -o $TARGET "https://storage.googleapis.com/kubernetes-release/release/$TARGET_VERSION/bin/$OS/amd64/kubectl"
chmod +x $TARGET
if [ ! -f "$TARGET" ]; then
curl -L -o "$TARGET" "https://storage.googleapis.com/kubernetes-release/release/$TARGET_VERSION/bin/$OS/amd64/kubectl"
chmod +x "$TARGET"
fi

$TARGET "$@"

0 comments on commit 905c4f3

Please sign in to comment.