mirror of
https://github.com/chaifeng/ufw-docker.git
synced 2025-05-10 13:38:32 +02:00
check if port list is empty
This commit is contained in:
parent
eafd3b70f9
commit
f16f69a23f
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue