From f16f69a23f6a92fa1457dd64cfc8b3fd04aea8ba Mon Sep 17 00:00:00 2001 From: Chai Feng Date: Sat, 6 Oct 2018 06:43:06 +0800 Subject: [PATCH] check if port list is empty --- ufw-docker | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ufw-docker b/ufw-docker index bfb4c44..2d96dc3 100755 --- a/ufw-docker +++ b/ufw-docker @@ -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