t5520: let sed open its own input

We were using a redirection operator to feed input into sed. However,
since sed is capable of opening its own files, make sed open its own
files instead of redirecting input into it.

Signed-off-by: Denton Liu <liu.denton@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Denton Liu 2019-11-12 15:07:52 -08:00 committed by Junio C Hamano
parent 53c62b9810
commit 4c8b046f82

View file

@ -5,7 +5,7 @@ test_description='pulling into void'
. ./test-lib.sh
modify () {
sed -e "$1" <"$2" >"$2.x" &&
sed -e "$1" "$2" >"$2.x" &&
mv "$2.x" "$2"
}