From 4a9315eef56b9b0411d0557f1538e832d81a18c5 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Sun, 17 Dec 2023 11:41:54 -0500 Subject: [PATCH] test --- common/functions.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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