diff --git a/common/functions.sh b/common/functions.sh index 7f64e0e..bba7f75 100644 --- a/common/functions.sh +++ b/common/functions.sh @@ -80,7 +80,11 @@ get_system_used_space() { human_readable_bytes() { local spacebytes="$1" - printf "$COL_YELLOW" "test $1 test" + echo "$spacebytes" +} + +human_readable_bytesD() { + local spacebytes="$1" spacekb=`expr "$spacebytes" / 1024` spacemb=`expr "$spacebytes" / 1024 / 1024` spacegb=`expr "$spacebytes" / 1024 / 1024 / 1024`