mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
judge: fix CR trim
This commit is contained in:
1 file changed
+1
@@ -60,6 +60,7 @@ const compareSh = `#!/bin/bash
|
|||||||
set -e
|
set -e
|
||||||
process_file() {
|
process_file() {
|
||||||
cat $1 | awk '
|
cat $1 | awk '
|
||||||
|
{sub(/\\r+$/,"")}
|
||||||
/^$/{n=n RS};
|
/^$/{n=n RS};
|
||||||
/./{
|
/./{
|
||||||
printf "%s",n; n="";
|
printf "%s",n; n="";
|
||||||
|
|||||||
Reference in new issue
Block a user