From: Beat Bolli Date: Fri, 15 Mar 2024 19:46:15 +0000 (+0100) Subject: t/t5*: merge a "grep | sed" pipeline X-Git-Tag: v2.45.0-rc0~80^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=37ea7c4875f4b581a75a6a2ac6c4904040a75580;p=thirdparty%2Fgit.git t/t5*: merge a "grep | sed" pipeline Signed-off-by: Beat Bolli Acked-by: Taylor Blau Signed-off-by: Junio C Hamano --- diff --git a/t/t5401-update-hooks.sh b/t/t5401-update-hooks.sh index 8b8bc47dc0..d8cadeec73 100755 --- a/t/t5401-update-hooks.sh +++ b/t/t5401-update-hooks.sh @@ -123,7 +123,7 @@ remote: STDOUT post-update remote: STDERR post-update EOF test_expect_success 'send-pack stderr contains hook messages' ' - grep ^remote: send.err | sed "s/ *\$//" >actual && + sed -n "/^remote:/s/ *\$//p" send.err >actual && test_cmp expect actual '