Skip to content

Commit fa35cd9

Browse files
sschuberthdscho
authored andcommitted
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 <[email protected]>
1 parent 52acf1e commit fa35cd9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

contrib/examples/git-am.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,9 @@ It does not apply to blobs recorded in its index.")"
188188
}
189189

190190
clean_abort () {
191-
test $# = 0 || echo >&2 "$@"
191+
test $# = 0 || cat >&2 <<EOF
192+
$@
193+
EOF
192194
rm -fr "$dotest"
193195
exit 1
194196
}

0 commit comments

Comments
 (0)