Skip to content

Commit

Permalink
Merge pull request #39 from 27Bslash6/fix-quotes
Browse files Browse the repository at this point in the history
fix(automysqlbackup): Fix quotes
  • Loading branch information
Ray Walker authored Jul 24, 2022
2 parents e81732e + aeadfd5 commit 5b0e866
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions automysqlbackup/bin/automysqlbackup
Original file line number Diff line number Diff line change
Expand Up @@ -353,9 +353,9 @@ dbdump() {
fi

if [ "$USERNAME" = "" -o -z "$PASSWORD" ]; then
mysqldump --defaults-file=/etc/mysql/debian.cnf --column-statistics=0 "$NEWOPT" "$1" >"$2"
mysqldump --defaults-file=/etc/mysql/debian.cnf --column-statistics=0 $NEWOPT $1 >"$2"
else
mysqldump --column-statistics=0 --user="$USERNAME" --password="$PASSWORD" --host="$DBHOST" "$NEWOPT" "$1" >"$2"
mysqldump --column-statistics=0 --user="$USERNAME" --password="$PASSWORD" --host="$DBHOST" $NEWOPT $1 >"$2"
fi
return 0
}
Expand Down

0 comments on commit 5b0e866

Please sign in to comment.