scripts/disk-usage in rvm-1.0.5 vs scripts/disk-usage in rvm-1.0.6
- old
+ new
@@ -13,14 +13,15 @@
disk_usage_for_directory() {
du -hs "$1" | awk '{print $1}'
}
disk_usage() {
- eval "local current_path=\"\$rvm_${2}_path\""
+ local current_path
+ eval "current_path=\"\$rvm_${2}_path\""
if [[ -n "$current_path" && -d "$current_path" && "$current_path" != "/" ]]; then
echo "$1 Usage: $(disk_usage_for_directory "$current_path")"
fi
- unset current_path
+ return 0
}
all_disk_usage() {
archives_disk_usage
repos_disk_usage