From: tony mancill Date: Sun, 13 Sep 2015 04:05:56 +0000 (-0700) Subject: use --apparent-size when invoking du to check size of JDK tarball X-Git-Url: http://git.sven.stormbind.net/?p=sven%2Fjava-package.git;a=commitdiff_plain;h=8905b8c25b9b7a64fe1df43e187cb48f6eb1a5ad;hp=a9cedb2f7699b4dd20972c6db4ff161094245e68 use --apparent-size when invoking du to check size of JDK tarball The bug report references problems on OpenVZ. Adding --apparent-size should be safe for general use. Closes: #794401 --- diff --git a/lib/common.sh b/lib/common.sh index 1e5c30b..73d729f 100644 --- a/lib/common.sh +++ b/lib/common.sh @@ -18,7 +18,7 @@ read_yn() { # diskusage : prints size in MB diskusage() { local path="$1" - read size dummy < <( du -sm "$path" ) + read size dummy < <( du -sm --apparent-size "$path" ) echo "$size" }