Skip to content

Commit 43f2fa9

Browse files
committed
fix dash compatibility
1 parent ff2ac22 commit 43f2fa9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kubectl-node_shell

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,14 @@ while [ $# -gt 0 ]; do
5656
done
5757

5858
while [ $# -gt 0 ]; do
59-
cmd+="\"$1\", "
59+
cmd="$cmd\"$1\", "
6060
custom=true
6161
shift
6262
done
6363
if [ "$custom" = true ]; then
6464
cmd="$(echo "$cmd" | awk '1' RS=', \n') ]"
6565
else
66-
cmd+='"bash", "-l" ]'
66+
cmd="$cmd\"bash\", \"-l\" ]"
6767
fi
6868

6969
if [ -z "$node" ]; then

0 commit comments

Comments
 (0)