mirror of https://github.com/containers/podman.git
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:
parent
7ab82579bb
commit
65a600332d
|
@ -6,10 +6,7 @@ then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
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 '{ split($2, data, "="); printf "%s ", data[1]; system("du -sh " data[2]) }' \
|
||||||
| awk '{ printf "%s %s\n", $2, $1 }' \
|
| awk '{ printf "%s %s\n", $2, $1 }' \
|
||||||
| sort -ruh \
|
| sort -u | sort -rh
|
||||||
)
|
|
||||||
|
|
||||||
echo "$DATA"
|
|
||||||
|
|
Loading…
Reference in New Issue