fixing issue \#25 Doesn't with other locale
This commit is contained in:
parent
3d2259125b
commit
86568044ed
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user