Skip to content

Commit

Permalink
Checking for empty KUBECTL instead of null
Browse files Browse the repository at this point in the history
  • Loading branch information
johanhaleby committed Jul 30, 2020
1 parent cace01b commit 3d472ea
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions kubetail
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/bin/bash

if [ -n "$KUBECTL_BIN" ]; then
if [ -z "${KUBECTL_BIN}" ]; then
if hash kubectl 2>/dev/null; then
KUBECTL_BIN='kubectl'
elif hash kubectl.exe 2>/dev/null; then
Expand Down

0 comments on commit 3d472ea

Please sign in to comment.