Skip to content

Commit 86183f9

Browse files
committed
fix the bug - tr: Illegal byte sequence
1 parent 395a4d8 commit 86183f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/comments.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ case ${FILE_EXT} in
191191
esac
192192

193193
#remove the ^M chars
194-
cat -v ${TMP_FILE} | tr -d '^M' > ${TMP_FILE}.1
194+
tr -d $'\r' < ${TMP_FILE} > ${TMP_FILE}.1
195195
mv ${TMP_FILE}.1 ${TMP_FILE}
196196

197197
#insert the problem description into the source file, and remove it

0 commit comments

Comments
 (0)