From 6daa769ea11f9a5b3ab9fd7817f01b28ca2532a5 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Sun, 17 Dec 2023 11:50:08 -0500 Subject: [PATCH] test --- common/functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/functions.sh b/common/functions.sh index c95817a..e0fa698 100644 --- a/common/functions.sh +++ b/common/functions.sh @@ -79,7 +79,7 @@ get_system_used_space() { } human_readable_bytes() { - local spacebytes="expr $1" + local spacebytes=$(printf -v int '%d\n' "$1" 2>/dev/null) spacekb=`expr "$spacebytes" / 1024` spacemb=`expr "$spacebytes" / 1024 / 1024` spacegb=`expr "$spacebytes" / 1024 / 1024 / 1024`