1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
Description: Fixed du call with non-english locals
Author: Francesco Namuri <franam@debian.org>
Bug-Debian: https://bugs.debian.org/783758
Forwarded: no
Last-Update: 2020-07-27
--- automysqlbackup-2.6+debian.4.orig/automysqlbackup
+++ automysqlbackup-2.6+debian.4/automysqlbackup
@@ -693,7 +693,7 @@ then
ERRORNOTE="WARNING: Error Reported - "
fi
#Get backup size
- ATTSIZE=`du -c $BACKUPFILES | grep "[[:digit:][:space:]]total$" |sed s/\s*total//`
+ ATTSIZE=`LANG=C du -c $BACKUPFILES | grep "[[:digit:][:space:]]total$" |sed s/\s*total//`
if [ $MAXATTSIZE -ge $ATTSIZE ]
then
BACKUPFILES=`echo "$BACKUPFILES" | sed -e "s# # -a #g"` #enable multiple attachments
|