From 9936a8e82c6305acb575533433667f835d028dbb Mon Sep 17 00:00:00 2001
From: spiritLHLS <103393591+spiritLHLS@users.noreply.github.com>
Date: Tue, 25 Apr 2023 14:27:28 +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 334ec03..ce484f5 100644
--- a/scripts/check_kernal.sh
+++ b/scripts/check_kernal.sh
@@ -58,14 +58,14 @@ check_config(){
     # 检查CPU核心数
     cpu_cores=$(grep -c ^processor /proc/cpuinfo)
     if [ "$cpu_cores" -lt 2 ]; then
-        _yellow "本机配置不满足最低要求:至少2核CPU"
+        _red "本机配置不满足最低要求:至少2核CPU"
         return
     fi
 
     # 检查内存大小
     total_mem=$(free -m | awk '/^Mem:/{print $2}')
     if [ "$total_mem" -lt 2048 ]; then
-        _yellow "本机配置不满足最低要求:至少2G内存"
+        _red "本机配置不满足最低要求:至少2G内存"
         return
     fi
 
@@ -73,7 +73,7 @@ check_config(){
     total_disk=$(df -h / | awk '/\//{print $2}')
     total_disk_num=$(echo $total_disk | sed 's/G//')
     if [ "$total_disk_num" -lt 20 ]; then
-        _yellow "本机配置不满足最低要求:至少20G硬盘"
+        _red "本机配置不满足最低要求:至少20G硬盘"
         return
     fi