From: Beat Bolli Date: Fri, 15 Mar 2024 19:46:02 +0000 (+0100) Subject: t/perf: avoid redundant use of cat X-Git-Tag: v2.45.0-rc0~80^2~17 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=108e18acc332162c0dabd505ca7f0804d49f4d80;p=thirdparty%2Fgit.git t/perf: avoid redundant use of cat Take care to redirect stdin, otherwise the output of wc would also contain the file name. Signed-off-by: Beat Bolli Acked-by: Taylor Blau Signed-off-by: Junio C Hamano --- diff --git a/t/perf/repos/inflate-repo.sh b/t/perf/repos/inflate-repo.sh index fcfc992b5b..412e4b450b 100755 --- a/t/perf/repos/inflate-repo.sh +++ b/t/perf/repos/inflate-repo.sh @@ -33,7 +33,7 @@ do done git ls-tree -r HEAD >GEN_src_list -nr_src_files=$(cat GEN_src_list | wc -l) +nr_src_files=$(wc -l