fixing issue \#25 Doesn't with other locale

This commit is contained in:
Artem Sherstnev 2020-01-06 16:14:48 +03:00
parent 3d2259125b
commit 86568044ed

View File

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