Merge "Fix broken if statement in lib/tls on ZSH"

This commit is contained in:
Jenkins 2014-03-24 23:21:00 +00:00 committed by Gerrit Code Review
commit d31b2bde46

View File

@ -348,7 +348,7 @@ function ensure_certificates {
local key=${!key_var}
local ca=${!ca_var}
if [[ !($cert && $key && $ca) ]]; then
if [[ -z "$cert" || -z "$key" || -z "$ca" ]]; then
die $LINENO "Missing either the ${cert_var} ${key_var} or ${ca_var}" \
"variable to enable SSL for ${service}"
fi