check if port list is empty
This commit is contained in:
+1
-1
@@ -58,7 +58,7 @@ function ufw-docker--allow() {
|
|||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -z "${PORT_PROTO_LIST[@]:-}" ]]; then
|
if [[ -z "${PORT_PROTO_LIST:-}" ]]; then
|
||||||
err "\"$INSTANCE_NAME\" doesn't have any published ports."
|
err "\"$INSTANCE_NAME\" doesn't have any published ports."
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user