test/difftree.sh: Remove useless command invocations

Shellchecks warns about two useless commands:
SC2005: Useless echo? Instead of 'echo $(cmd)', just use 'cmd'.
SC2002: Useless cat. Consider 'cmd < file | ..' or 'cmd file | ..' instead.

Simplify that line with those suggestions.

Signed-off-by: Julien Thierry <jthierry@redhat.com>
This commit is contained in:
Julien Thierry 2020-06-03 09:20:54 +01:00
parent 4dd55cd407
commit ac2d6e3759
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ echo ""
echo "Results:" echo "Results:"
for i in $(find ./* -iname '*.log') for i in $(find ./* -iname '*.log')
do do
echo $(cat $i | head -1 | cut -f2-3 -d':') head -1 "$i" | cut -f2-3 -d':'
done | sort | uniq -c | sort -n -r | tee "$TEMPDIR/results.log" done | sort | uniq -c | sort -n -r | tee "$TEMPDIR/results.log"
echo "results are in $TEMPDIR" echo "results are in $TEMPDIR"