From 00bf86f138bca553c4e5ca20623033ef66c3ac83 Mon Sep 17 00:00:00 2001 From: Chai Feng Date: Wed, 3 Oct 2018 15:57:54 +0800 Subject: [PATCH] fix bug --- ufw-docker | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }