diff --git a/common/functions.sh b/common/functions.sh index 1aa8a4f..743825b 100644 --- a/common/functions.sh +++ b/common/functions.sh @@ -79,10 +79,9 @@ get_system_used_space() { } human_readable_bytes() { - local spacebytes="$1" - spacekb=`expr $spacebytes / 1024` - spacemb=`expr $spacebytes / 1024 / 1024` - spacegb=`expr $spacebytes / 1024 / 1024 / 1024` + spacekb=`expr $1 / 1024` + spacemb=`expr $1 / 1024 / 1024` + spacegb=`expr $1 / 1024 / 1024 / 1024` if [[ "$spacegb" -gt 0 ]] then