Fix bash if logic expression with compare strings.

This commit is contained in:
Mr db-predelanet LXC
2020-10-21 08:13:56 +00:00
parent 014d14beaa
commit 74e88a55c0

View File

@ -28,7 +28,7 @@ mysql --defaults-extra-file=./.remote.my.cnf -e "$REMOTE_SQL"
mysql --defaults-extra-file=./.my.cnf -e "START SLAVE;" mysql --defaults-extra-file=./.my.cnf -e "START SLAVE;"
if [ "$1" -eq "master-to-master" ]; then if [[ "$1" = "master-to-master" ]]; then
LOCAL_SQL= LOCAL_SQL=
for i in ${databases[@]} for i in ${databases[@]}