check if port list is empty

This commit is contained in:
Chai Feng 2018-10-06 06:43:06 +08:00
parent eafd3b70f9
commit f16f69a23f
No known key found for this signature in database
GPG Key ID: 2DCD9A24E523FFD2

View File

@ -58,7 +58,7 @@ function ufw-docker--allow() {
return
fi
if [[ -z "${PORT_PROTO_LIST[@]:-}" ]]; then
if [[ -z "${PORT_PROTO_LIST:-}" ]]; then
err "\"$INSTANCE_NAME\" doesn't have any published ports."
return 1
fi