File: fix-too-many-argument.patch

package info (click to toggle)
automysqlbackup 2.6%2Bdebian.4-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 160 kB
  • sloc: sh: 668; makefile: 46
file content (17 lines) | stat: -rw-r--r-- 547 bytes parent folder | download
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"