am: Use cat instead of echo to avoid DOS line-endings (fixes t4150)

Along the lines of 05d0e3b and f33946d, use cat instead of echo to avoid
line ending mismatches in the test result of "am empty-file does not
infloop" which make the test fail.

Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
This commit is contained in:
Sebastian Schuberth authored and Johannes Schindelin committed 2015-07-18 09:16:27 +02:00
1 parent 7eb9c3c2e7
commit d45eedeff3
1 file changed
+3 -1
+3 -1
View File
@@ -185,7 +185,9 @@ It does not apply to blobs recorded in its index.")"
}
clean_abort () {
test $# = 0 || echo >&2 "$@"
test $# = 0 || cat >&2 <<EOF
$@
EOF
rm -fr "$dotest"
exit 1
}