Compare commits

..

2 Commits

Author SHA1 Message Date
deathbybandaid
6c07c8b175 test 2023-12-17 11:42:05 -05:00
deathbybandaid
4a9315eef5 test 2023-12-17 11:41:54 -05:00

View File

@ -74,15 +74,12 @@ pkgmgr_update(){
get_system_used_space() {
usedspace=$(df --output=used -B1 / | tail -n 1| cut -d'%' -f1)
printf "$COL_RED" "$usedspace"
echo $usedspace
}
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