From 65a600332d3fcdbd0c64d096c68678d25a705dac Mon Sep 17 00:00:00 2001 From: Valentin Rothberg Date: Tue, 2 Jul 2019 17:55:24 +0200 Subject: 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 --- hack/analyses/go-archive-analysis.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'hack/analyses/go-archive-analysis.sh') 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 -- cgit v1.2.3-54-g00ecf