Compare commits

..

No commits in common. "fae4b43c3df5443f1d4a0955ddbb9f55a324dc25" and "3f702f7fd8a7ef48c8b31769d3989c4437abef89" have entirely different histories.

2 changed files with 3 additions and 5 deletions

View File

@ -7,11 +7,11 @@ source "$SCRIPTDIR/common/functions.sh"
source "$SCRIPTDIR/common/load-defaults.sh"
printf "$COL_LIGHT_BLUE" "* Cleaning up system"
prespace=$(get_system_used_space)
prespace=$(echo get_system_used_space)
prespacewords=`human_readable_bytes $prespace`
printf "$COL_LIGHT_BLUE" "* Current used space is $prespacewords"
pkgmgr_clean
postspace=$(get_system_used_space)
postspace=$(echo get_system_used_space)
postspacewords=`human_readable_bytes $prespace`
printf "$COL_LIGHT_BLUE" "* Current used space is now $postspacewords"

View File

@ -73,9 +73,7 @@ pkgmgr_update(){
get_system_used_space() {
usedspace=$(df --output=used -B1 / | tail -n 1| cut -d'%' -f1)
echo "$usedspace"
return $usedspace
return $(df --output=used -B1 / | tail -n 1| cut -d'%' -f1)
}
human_readable_bytes() {