From 9949929607e0740baf3435d9ad87cdf2798e349c Mon Sep 17 00:00:00 2001 From: xubiaolin Date: Fri, 1 Mar 2024 21:14:20 +0800 Subject: [PATCH] update-kernel --- deploy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy.sh b/deploy.sh index 6e09bdb..4465704 100755 --- a/deploy.sh +++ b/deploy.sh @@ -6,7 +6,7 @@ kernel_check(){ os_name=$(cat /etc/os-release | grep ^ID= | cut -d'=' -f2) kernel_version=$(uname -r | cut -d'.' -f1) if [[ "$kernel_version" -lt 5 ]]; then - if [[ "$os_name" == "centos" ]]; then + if [[ "$os_name" == "\"centos\"" ]]; then echo "内核版本太低,请在菜单中选择CentOS内核升级" exit 1 else