danisla / kubefunc

Collection of handy kubernetes related helper scripts and bash functions.
88 stars 19 forks source link

kubectl-pod_logs breaks on non-POSIX Mac shell #16

Open joedobner opened 3 years ago

joedobner commented 3 years ago

OSX bash doesn't like ,,

TMC02YJ3FXJGH6:kubefunc jdobner1$ RUN=(RUN Run run)
TMC02YJ3FXJGH6:kubefunc jdobner1$ echo ${RUN[1],,}
Run
TMC02YJ3FXJGH6:kubefunc jdobner1$ echo $SHELL
/bin/bash

This results in

Select a Pod: 112
ERROR: Pod totally-real-eks-pod-name-5cd48dd956-7ktlb is not running

Because the status is Running