We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6da560b commit 9ad6c11Copy full SHA for 9ad6c11
kubectl-node_shell
100755
100644
@@ -75,11 +75,10 @@ else
75
cmd+=(bash -l)
76
fi
77
# translate embedded single-quotes to double-quotes, so the following line will work
78
-cmd=( "${cmd[@]//\'/\"}" )
+cmd=( "${cmd[@]//\'/\"}" )
79
+cmd=( "${cmd[@]//\\/\\\\/}" )
80
81
# jsonify(as an array) the argument list (mainly from the command line)
-entrypoint="$(echo "['${cmd[@]/%/\', \'}']" | sed -e "s/' /'/g" \
82
- -e "s/, '']\$/]/" -Ee "s/([\"\\])/\\\\\1/g" -e 's/\\\\n/\\n/g' | tr \' \")"
83
84
if [ -z "$node" ]; then
85
echo "Please specify node name"
0 commit comments