Skip to content
Snippets Groups Projects
Commit 054b4059 authored by Elena Gryaznova's avatar Elena Gryaznova
Browse files

b=12649

escape "|" on log message to protect interpretation by shell
parent 7bfeb4ea
No related branches found
No related tags found
No related merge requests found
......@@ -1057,6 +1057,7 @@ log() {
MSG=${MSG//\(/\\\(}
MSG=${MSG//\)/\\\)}
MSG=${MSG//\;/\\\;}
MSG=${MSG//\|/\\\|}
local NODES=$(nodes_list)
for NODE in $NODES; do
do_node $NODE $LCTL mark "$MSG" 2> /dev/null || true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment