Always using english to avoid multilingual issue

This commit is contained in:
Chai Feng 2020-01-09 13:05:18 +08:00
parent e2e6d76187
commit ab03a6aa64
No known key found for this signature in database
GPG Key ID: 2DCD9A24E523FFD2

View File

@ -2,6 +2,9 @@
set -euo pipefail
[[ -n "${DEBUG:-}" ]] && set -x
LANG=en_US.UTF-8
LANGUAGE=en_US:
LC_ALL=en_US.UTF-8
PATH="/bin:/usr/bin:/sbin:/usr/sbin"
GREP_REGEXP_INSTANCE_NAME="[-_.[:alnum:]]\\+"
@ -379,7 +382,7 @@ function die() {
exit 1
}
if ! eval "LANG=C ufw status 2>/dev/null | grep -Fq \"Status: active\"" ; then
if ! ufw status 2>/dev/null | grep -Fq "Status: active" ; then
die "UFW is disabled or you are not root user."
fi