When using ZSH, the line `if [[ (!$cert && !$key && $ca) ]]` fails
due to a syntax error. Instead of checking the variables as a boolean,
we can simply check if they have a non-zero length. This works in ZSH.
Change-Id: I171ed10a8c0af354e82bd6119508a0c44b6bcd9c
... | ... |
@@ -348,7 +348,7 @@ function ensure_certificates { |
348 | 348 |
local key=${!key_var} |
349 | 349 |
local ca=${!ca_var} |
350 | 350 |
|
351 |
- if [[ !($cert && $key && $ca) ]]; then |
|
351 |
+ if [[ -z "$cert" || -z "$key" || -z "$ca" ]]; then |
|
352 | 352 |
die $LINENO "Missing either the ${cert_var} ${key_var} or ${ca_var}" \ |
353 | 353 |
"variable to enable SSL for ${service}" |
354 | 354 |
fi |