1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
Description: Fix monthly backup fails with line 427: [: too many arguments
Author: Thomas Goirand <zigo@debian.org>
Bug-Debian: https://bugs.debian.org/889064
Forwarded: no
Last-Update: 2018-09-21
--- automysqlbackup-2.6+debian.4.orig/automysqlbackup
+++ automysqlbackup-2.6+debian.4/automysqlbackup
@@ -424,7 +424,7 @@ exec 2> $LOGERR # stderr replaced wi
dbdump () {
touch $2
chmod 600 $2
- if [ $1 = "information_schema" ] ; then
+ if [ "$1" = "information_schema" ] ; then
NEWOPT="--skip-opt ${OPT}"
else
NEWOPT="--opt $OPT"
|