fix wrong syntax

This commit is contained in:
Chai Feng 2018-10-05 19:30:48 +08:00
parent 0c23335317
commit a3195297d7
No known key found for this signature in database
GPG Key ID: 2DCD9A24E523FFD2

View File

@ -182,7 +182,7 @@ function ufw-docker--service-allow() {
fi fi
declare service_id="$(ufw-docker--get-service-id "${service_name}")" declare service_id="$(ufw-docker--get-service-id "${service_name}")"
[[ -z "$service_id:-" ]] && die "Could not find service \"$service_name\"" [[ -z "${service_id:-}" ]] && die "Could not find service \"$service_name\""
service_name="$(ufw-docker--get-service-name "${service_name}")" service_name="$(ufw-docker--get-service-name "${service_name}")"