From b89ed7298aa7ef979cdc0d4ae3a67fa3a3bd6c53 Mon Sep 17 00:00:00 2001 From: spiritLHLS <103393591+spiritLHLS@users.noreply.github.com> Date: Mon, 24 Apr 2023 09:19:40 +0800 Subject: [PATCH] Update check_kernal.sh --- scripts/check_kernal.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/check_kernal.sh b/scripts/check_kernal.sh index 8f03b6c..1f41275 100644 --- a/scripts/check_kernal.sh +++ b/scripts/check_kernal.sh @@ -6,7 +6,7 @@ _red() { echo -e "\033[31m\033[01m$@\033[0m"; } _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"; } +reading(){ read -rp "$(_green "$1")" "$2"; } utf8_locale=$(locale -a 2>/dev/null | grep -i -m 1 utf8) if [[ -z "$utf8_locale" ]]; then _yellow "No UTF-8 locale found"