Skip to content

Commit 108e18a

Browse files
Beat Bolligitster
authored andcommitted
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 <[email protected]> Acked-by: Taylor Blau <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 47c0f24 commit 108e18a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/perf/repos/inflate-repo.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ do
3333
done
3434

3535
git ls-tree -r HEAD >GEN_src_list
36-
nr_src_files=$(cat GEN_src_list | wc -l)
36+
nr_src_files=$(wc -l <GEN_src_list)
3737

3838
src_branch=$(git symbolic-ref --short HEAD)
3939

0 commit comments

Comments
 (0)