Compare commits
2 Commits
3f702f7fd8
...
fae4b43c3d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fae4b43c3d | ||
|
|
3a139733f3 |
@ -7,11 +7,11 @@ source "$SCRIPTDIR/common/functions.sh"
|
|||||||
source "$SCRIPTDIR/common/load-defaults.sh"
|
source "$SCRIPTDIR/common/load-defaults.sh"
|
||||||
|
|
||||||
printf "$COL_LIGHT_BLUE" "* Cleaning up system"
|
printf "$COL_LIGHT_BLUE" "* Cleaning up system"
|
||||||
prespace=$(echo get_system_used_space)
|
prespace=$(get_system_used_space)
|
||||||
prespacewords=`human_readable_bytes $prespace`
|
prespacewords=`human_readable_bytes $prespace`
|
||||||
printf "$COL_LIGHT_BLUE" "* Current used space is $prespacewords"
|
printf "$COL_LIGHT_BLUE" "* Current used space is $prespacewords"
|
||||||
pkgmgr_clean
|
pkgmgr_clean
|
||||||
postspace=$(echo get_system_used_space)
|
postspace=$(get_system_used_space)
|
||||||
postspacewords=`human_readable_bytes $prespace`
|
postspacewords=`human_readable_bytes $prespace`
|
||||||
printf "$COL_LIGHT_BLUE" "* Current used space is now $postspacewords"
|
printf "$COL_LIGHT_BLUE" "* Current used space is now $postspacewords"
|
||||||
|
|
||||||
|
|||||||
@ -73,7 +73,9 @@ pkgmgr_update(){
|
|||||||
|
|
||||||
|
|
||||||
get_system_used_space() {
|
get_system_used_space() {
|
||||||
return $(df --output=used -B1 / | tail -n 1| cut -d'%' -f1)
|
usedspace=$(df --output=used -B1 / | tail -n 1| cut -d'%' -f1)
|
||||||
|
echo "$usedspace"
|
||||||
|
return $usedspace
|
||||||
}
|
}
|
||||||
|
|
||||||
human_readable_bytes() {
|
human_readable_bytes() {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user