From 86568044edffe92efd35d1489ea6484730fc3298 Mon Sep 17 00:00:00 2001 From: Artem Sherstnev Date: Mon, 6 Jan 2020 16:14:48 +0300 Subject: [PATCH] fixing issue \#25 Doesn't with other locale --- ufw-docker | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ufw-docker b/ufw-docker index 32940c3..acb2431 100755 --- a/ufw-docker +++ b/ufw-docker @@ -379,7 +379,7 @@ function die() { exit 1 } -if ! ufw status 2>/dev/null | grep -Fq "Status: active" ; then +if ! eval "LANG=C ufw status 2>/dev/null | grep -Fq \"Status: active\"" ; then die "UFW is disabled or you are not root user." fi