fix(tests/lean/interactive/mk_input): strip \r from input files (win)
This commit is contained in:
parent
eef4d95410
commit
e6f3c5cc22
1 changed files with 1 additions and 0 deletions
|
|
@ -2,6 +2,7 @@
|
|||
# generate server input from "--^" markers
|
||||
INPUT="$(cat)"
|
||||
ESC_INPUT="${INPUT//$'\n'/\\n}"
|
||||
ESC_INPUT="${ESC_INPUT//$'\r'/}"
|
||||
ESC_INPUT="${ESC_INPUT//\"/\\\"}"
|
||||
echo "{\"seq_num\": 0, \"command\": \"sync\", \"file_name\": \"f\", \"content\": \"$ESC_INPUT\"}"
|
||||
awk '{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue