aboutsummaryrefslogtreecommitdiff
path: root/hack
diff options
context:
space:
mode:
authorValentin Rothberg <rothberg@redhat.com>2019-07-02 17:55:24 +0200
committerValentin Rothberg <rothberg@redhat.com>2019-07-16 14:16:16 +0200
commit65a600332d3fcdbd0c64d096c68678d25a705dac (patch)
tree5668d288b280ace2e77dd40b886bd4405e8e1754 /hack
parent7ab82579bb29649768b675726bd1503d83aeaea6 (diff)
downloadpodman-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-xhack/analyses/go-archive-analysis.sh7
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