test
This commit is contained in:
parent
6c07c8b175
commit
ea9378a3e7
@ -74,12 +74,15 @@ 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() {
|
||||
spacekb=`expr $1 / 1024`
|
||||
spacemb=`expr $1 / 1024 / 1024`
|
||||
spacegb=`expr $1 / 1024 / 1024 / 1024`
|
||||
local spacebytes="$1"
|
||||
spacekb=`expr "$spacebytes" / 1024`
|
||||
spacemb=`expr "$spacebytes" / 1024 / 1024`
|
||||
spacegb=`expr "$spacebytes" / 1024 / 1024 / 1024`
|
||||
|
||||
if [[ "$spacegb" -gt 0 ]]
|
||||
then
|
||||
|
||||
Loading…
Reference in New Issue
Block a user