diff options
author | Valentin Rothberg <rothberg@redhat.com> | 2019-07-02 17:55:24 +0200 |
---|---|---|
committer | Valentin Rothberg <rothberg@redhat.com> | 2019-07-16 14:16:16 +0200 |
commit | 65a600332d3fcdbd0c64d096c68678d25a705dac (patch) | |
tree | 5668d288b280ace2e77dd40b886bd4405e8e1754 /hack | |
parent | 7ab82579bb29649768b675726bd1503d83aeaea6 (diff) | |
download | podman-65a600332d3fcdbd0c64d096c68678d25a705dac.tar.gz podman-65a600332d3fcdbd0c64d096c68678d25a705dac.tar.bz2 podman-65a600332d3fcdbd0c64d096c68678d25a705dac.zip |
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>
Diffstat (limited to 'hack')
-rwxr-xr-x | hack/analyses/go-archive-analysis.sh | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/hack/analyses/go-archive-analysis.sh b/hack/analyses/go-archive-analysis.sh index 8f3a110d6..f10145dad 100755 --- a/hack/analyses/go-archive-analysis.sh +++ b/hack/analyses/go-archive-analysis.sh @@ -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 |