Skip to content

Commit

Permalink
Fix check for kubectl
Browse files Browse the repository at this point in the history
Was checking for the file instead of that the file DNE.

Signed-off-by: John Schnake <jschnake@vmware.com>
  • Loading branch information
johnSchnake committed Aug 2, 2022
1 parent d125fb9 commit 94e8236
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/build_funcs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ load_test_images_into_cluster(){
# tests so this will also build sonobuoy locally. A kind cluster won't be necessary.
update_local() {
set -x
if [ -f "./kubectl" ]; then
if [ ! -f "./kubectl" ]; then
# Download linux kubectl and move into default path for tests
curl --output ./kubectl https://storage.googleapis.com/kubernetes-release/release/v1.23.0/bin/linux/amd64/kubectl
chmod +x ./kubectl
Expand Down

0 comments on commit 94e8236

Please sign in to comment.