summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorPhilip Stoev <philip.stoev@galeracluster.com>2015-06-08 01:46:20 -0700
committerNirbhay Choubey <nirbhay@mariadb.com>2015-09-09 17:03:31 -0400
commit62c25393767179b6ace73a94b07e9fe2cfff5ba2 (patch)
tree6058d334f2799176473f309b5cdb5cbecdbb6d34 /scripts
parenta7ea3ec34d7c542542dc11e324b1667fd9ba1a48 (diff)
downloadmariadb-git-62c25393767179b6ace73a94b07e9fe2cfff5ba2.tar.gz
Refs codership/mysql-wsrep#143 . Account for the case where the SST password is empty
Diffstat (limited to 'scripts')
-rw-r--r--scripts/wsrep_sst_common.sh2
1 files changed, 1 insertions, 1 deletions
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