diff options
author | Holger Levsen <holger@layer-acht.org> | 2015-07-06 01:13:36 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-07-06 01:13:36 +0200 |
commit | 8b59c46e1e70901cb8f313239ef8672ba5c92bf8 (patch) | |
tree | de75638916abcaefb603b6dcb165addd87f8e30d /bin | |
parent | f7f8681167e27567ccaa403076c6883effe5cb1f (diff) | |
download | jenkins.debian.net-8b59c46e1e70901cb8f313239ef8672ba5c92bf8.tar.xz |
reproducible coreboot/openwrt/netbsd: try to be even more sensible when displaying file sizes
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/reproducible_common.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/reproducible_common.sh b/bin/reproducible_common.sh index 85ef6bf4..c6ba67ea 100755 --- a/bin/reproducible_common.sh +++ b/bin/reproducible_common.sh @@ -414,7 +414,8 @@ call_debbindiff_on_any_file() { get_filesize() { local BYTESIZE="$(du -h -b $1 | cut -f1)" - if [ $BYTESIZE -gt 1048576 ] ; then + # numbers below 16384K are understood and more meaningful than 16M... + if [ $BYTESIZE -gt 16777216 ] ; then SIZE="$(echo $BYTESIZE/1048576|bc)M" elif [ $BYTESIZE -gt 1024 ] ; then SIZE="$(echo $BYTESIZE/1024|bc)K" |