summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWim Muskee <wimmuskee@gmail.com>2013-01-15 18:46:29 +0100
committerWim Muskee <wimmuskee@gmail.com>2013-01-15 18:46:29 +0100
commitca912c79103dbc4a7dc3b4729ba6e33258fb05c6 (patch)
treeeb39ce33d2c1e032b0fb41e65923eaf85f016026
parentMan page refresh; option list, file list, add update locales description. (diff)
downloadlocalepurge-ca912c79103dbc4a7dc3b4729ba6e33258fb05c6.tar.gz
localepurge-ca912c79103dbc4a7dc3b4729ba6e33258fb05c6.tar.bz2
localepurge-ca912c79103dbc4a7dc3b4729ba6e33258fb05c6.zip
Fix crash when cleared size = 0 (#452208).HEADmaster
-rwxr-xr-xlocalepurge2
1 files changed, 1 insertions, 1 deletions
diff --git a/localepurge b/localepurge
index e4699f9..fc06c7f 100755
--- a/localepurge
+++ b/localepurge
@@ -297,7 +297,7 @@ done
# Calculating and reporting total disk space freed:
if [ "$SHOWFREEDSPACE" = "enabled" ]; then
- let TOTAL=$LOCALETOTAL+$MANTOTAL
+ TOTAL=$(($LOCALETOTAL + $MANTOTAL))
if test $TOTAL -lt 0; then
TOTAL=0
fi