hack/analyses/go-archive-analysis.sh: fix sorting

Believe it or not:
`sort -ruh` is loosing data while `sort -u | sort -rh` does not.

Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
This commit is contained in:
Valentin Rothberg 2019-07-02 17:55:24 +02:00
parent 7ab82579bb
commit 65a600332d
1 changed files with 2 additions and 5 deletions

View File

@ -6,10 +6,7 @@ then
exit 1
fi
DATA=$(grep --no-filename packagefile $WORK/**/importcfg \
grep --no-filename packagefile $WORK/**/importcfg \
| awk '{ split($2, data, "="); printf "%s ", data[1]; system("du -sh " data[2]) }' \
| awk '{ printf "%s %s\n", $2, $1 }' \
| sort -ruh \
)
echo "$DATA"
| sort -u | sort -rh