mirror of https://github.com/dynup/kpatch
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:
parent
4dd55cd407
commit
ac2d6e3759
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue