This commit is contained in:
Chai Feng 2018-10-03 15:57:54 +08:00
parent 589832c221
commit 00bf86f138
No known key found for this signature in database
GPG Key ID: 2DCD9A24E523FFD2

View File

@ -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
}