diff --git a/ufw-docker b/ufw-docker index 6af9b65..8edfd8c 100755 --- a/ufw-docker +++ b/ufw-docker @@ -108,7 +108,7 @@ function ufw-docker--instance-name() { { { docker inspect --format='{{.Name}}' "$INSTANCE_ID" 2>/dev/null | sed -e 's,^/,,' | - grep "^${GREP_REGEXP_INSTANCE_NAME}\$" &>/dev/null + grep "^${GREP_REGEXP_INSTANCE_NAME}\$" 2>/dev/null } || echo -n "$INSTANCE_ID"; } | remove_blank_lines }