Fix bash if logic expression with compare strings.
This commit is contained in:
@ -28,7 +28,7 @@ mysql --defaults-extra-file=./.remote.my.cnf -e "$REMOTE_SQL"
|
||||
|
||||
mysql --defaults-extra-file=./.my.cnf -e "START SLAVE;"
|
||||
|
||||
if [ "$1" -eq "master-to-master" ]; then
|
||||
if [[ "$1" = "master-to-master" ]]; then
|
||||
LOCAL_SQL=
|
||||
|
||||
for i in ${databases[@]}
|
||||
|
Reference in New Issue
Block a user