Skip to content

Commit aae8212

Browse files
committed
fix: custom command formatter
1 parent 3b7b8e3 commit aae8212

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kubectl-node_shell

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ while [ $# -gt 0 ]; do
7474
shift
7575
done
7676
if [ "$custom" = true ]; then
77-
cmd="$(echo "$cmd" | awk '1' RS=', \n') ]"
77+
cmd="$(echo "$cmd" | awk '{sub(/..$/,"",$0); print $0}') ]"
7878
else
7979
cmd="$cmd\"bash\", \"-l\" ]"
8080
fi

0 commit comments

Comments
 (0)