From bc796c29b35ed307fd721543f2171572093d88f4 Mon Sep 17 00:00:00 2001 From: Philip Stoev Date: Mon, 8 Jun 2015 01:43:27 -0700 Subject: [PATCH] Refs codership/mysql-wsrep#143 . Account for the case where the SST password is empty --- scripts/wsrep_sst_common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/wsrep_sst_common.sh b/scripts/wsrep_sst_common.sh index f7cd9e91849..f6d838ef425 100644 --- a/scripts/wsrep_sst_common.sh +++ b/scripts/wsrep_sst_common.sh @@ -144,7 +144,7 @@ if ! wsrep_auth_not_set then readonly AUTH_VEC=(${WSREP_SST_OPT_AUTH//:/ }) [ -n "${AUTH_VEC[0]}" ] && WSREP_SST_OPT_USER="${AUTH_VEC[0]}" - [ -n "${AUTH_VEC[1]}" ] && WSREP_SST_OPT_PSWD="${AUTH_VEC[1]}" + [ -n "${AUTH_VEC[1]:-}" ] && WSREP_SST_OPT_PSWD="${AUTH_VEC[1]:-}" fi readonly WSREP_SST_OPT_USER readonly WSREP_SST_OPT_PSWD