Merge pull request #27 from tobiashe/master

fixing issue \#25 Doesn't with other locale
This commit is contained in:
Chai Feng 2020-01-09 12:14:14 +08:00 committed by GitHub
commit e2e6d76187
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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