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