Commit 8905b8c2 authored by Tony Mancill's avatar Tony Mancill

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
parent a9cedb2f
......@@ -18,7 +18,7 @@ read_yn() {
# diskusage <path>: prints size in MB
diskusage() {
local path="$1"
read size dummy < <( du -sm "$path" )
read size dummy < <( du -sm --apparent-size "$path" )
echo "$size"
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment