fix(tests/lean/interactive/mk_input): strip \r from input files (win)

This commit is contained in:
Mario Carneiro 2017-06-21 02:24:51 -04:00 committed by Gabriel Ebner
parent eef4d95410
commit e6f3c5cc22

View file

@ -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 '{