Skip to content

Commit 8f0c35d

Browse files
author
Joe Schaefer
committed
old-bash-support
1 parent 6da560b commit 8f0c35d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kubectl-node_shell

100755100644
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ fi
7878
cmd=( "${cmd[@]//\'/\"}" )
7979

8080
# jsonify(as an array) the argument list (mainly from the command line)
81-
entrypoint="$(echo "['${cmd[@]/%/\', \'}']" | sed -e "s/' /'/g" \
82-
-e "s/, '']\$/]/" -Ee "s/([\"\\])/\\\\\1/g" -e 's/\\\\n/\\n/g' | tr \' \")"
81+
entrypoint="$(echo -e "['${cmd[@]/%/\', \'}']" | sed -e "s/' /'/g" \
82+
-e "s/, '']\$/]/" -Ee 's/([\"\\])/\\\1/g' -e 's/\\\\n/\\n/g' | tr \' \")"
8383

8484
if [ -z "$node" ]; then
8585
echo "Please specify node name"

0 commit comments

Comments
 (0)