Merge pull request #27 from tobiashe/master
fixing issue \#25 Doesn't with other locale
This commit is contained in:
commit
e2e6d76187
@ -379,7 +379,7 @@ function die() {
|
|||||||
exit 1
|
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."
|
die "UFW is disabled or you are not root user."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user