From dd053b5c820366fb619400278469d16a56933bf7 Mon Sep 17 00:00:00 2001 From: spiritLHLS <103393591+spiritLHLS@users.noreply.github.com> Date: Thu, 27 Apr 2023 11:26:53 +0800 Subject: [PATCH] Update check_kernal.sh --- scripts/check_kernal.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/check_kernal.sh b/scripts/check_kernal.sh index 64b2a0e..3ad9d29 100644 --- a/scripts/check_kernal.sh +++ b/scripts/check_kernal.sh @@ -7,14 +7,14 @@ _green() { echo -e "\033[32m\033[01m$@\033[0m"; } _yellow() { echo -e "\033[33m\033[01m$@\033[0m"; } _blue() { echo -e "\033[36m\033[01m$@\033[0m"; } reading(){ read -rp "$(_green "$1")" "$2"; } -utf8_locale=$(locale -a 2>/dev/null | grep -i -m 1 -E "utf8|UTF-8") +utf8_locale=$(locale -a 2>/dev/null | grep -i -m 1 -E "UTF-8|utf8") if [[ -z "$utf8_locale" ]]; then - _yellow "No UTF-8 locale found" + echo "No UTF-8 locale found" else export LC_ALL="$utf8_locale" export LANG="$utf8_locale" export LANGUAGE="$utf8_locale" - _green "Locale set to $utf8_locale" + echo "Locale set to $utf8_locale" fi # 检查CPU是否支持硬件虚拟化