From 8905b8c25b9b7a64fe1df43e187cb48f6eb1a5ad Mon Sep 17 00:00:00 2001 From: tony mancill Date: Sat, 12 Sep 2015 21:05:56 -0700 Subject: [PATCH] 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 --- lib/common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" } -- 2.39.2