summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWim Muskee <wimmuskee@gmail.com>2012-12-04 22:02:53 +0100
committerWim Muskee <wimmuskee@gmail.com>2012-12-04 22:02:53 +0100
commitb5b587ab87f1ede8a41b7922475d471da1c3c299 (patch)
treeae652260787d859850c021f2bed9cb5b601de94f
parentv0.5.4 (diff)
downloadlocalepurge-b5b587ab87f1ede8a41b7922475d471da1c3c299.tar.gz
localepurge-b5b587ab87f1ede8a41b7922475d471da1c3c299.tar.bz2
localepurge-b5b587ab87f1ede8a41b7922475d471da1c3c299.zip
Err, forgot to add the sum for each directory.
-rwxr-xr-xlocalepurge4
1 files changed, 2 insertions, 2 deletions
diff --git a/localepurge b/localepurge
index aef8156..e2e5ee4 100755
--- a/localepurge
+++ b/localepurge
@@ -198,7 +198,7 @@ purgelocale () {
if [ "$SHOWFREEDSPACE" = "enabled" ]; then
if test $SPACETMP -gt 0 ; then
- LOCALETOTAL=$SPACETMP
+ LOCALETOTAL=$(($LOCALETOTAL + $SPACETMP))
einfo "localepurge: Disk space freed in $LOCALEDIR: ${BOLD}"$SPACETMP"K${NORMAL}"
fi
SPACETMP=0
@@ -230,7 +230,7 @@ purgeman () {
if [ "$SHOWFREEDSPACE" = "enabled" ]; then
if test $SPACETMP -gt 0 ; then
- MANTOTAL=$SPACETMP
+ MANTOTAL=$(($MANTOTAL + $SPACETMP))
einfo "localepurge: Disk space freed in $MANPAGEDIR: ${BOLD}"$SPACETMP"K${NORMAL}"
fi
SPACETMP=0