Skip to content

Commit

Permalink
Set default command to sh
Browse files Browse the repository at this point in the history
  • Loading branch information
en0 committed Jul 16, 2021
1 parent f8bea92 commit be6e299
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kube-fzf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ _kube_fzf_handler() {
if [ "$func" = "execpod" ] || [ "$func" = "pfpod" ]; then
if [ $# -eq 1 ]; then
cmd=$1
[ -z "$cmd" ] && cmd="$SHELL"
[ -z "$cmd" ] && cmd="sh"
elif [ $# -eq 2 ]; then
pod_query=$1
cmd=$2
Expand All @@ -117,7 +117,7 @@ _kube_fzf_handler() {
else
if [ -z "$cmd" ]; then
if [ "$func" = "execpod" ]; then
cmd="$SHELL"
cmd="sh"
elif [ "$func" = "pfpod" ]; then
echo "Port required." && _kube_fzf_usage "$func" && return 1
fi
Expand Down

0 comments on commit be6e299

Please sign in to comment.