X-Git-Url: http://git.sven.stormbind.net/?p=sven%2Fjava-package.git;a=blobdiff_plain;f=lib%2Fcommon.sh;h=268c458085765822d722241835f3bff1a27cfa22;hp=1e5c30b7d0328097c080a508f2bd121a35b42321;hb=3507a234b95476fe4ed3e6d7be685e4ffb2df576;hpb=9659f4a2f241fb0845a9e6e5840792bfe1f2dccd diff --git a/lib/common.sh b/lib/common.sh index 1e5c30b..268c458 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" } @@ -202,3 +202,10 @@ get_browser_plugin_dirs() { fi } +get_distribution() { + if [ -n "$distribution" ]; then + target_distribution="$distribution" + else + target_distribution="unstable" + fi +}