From 517be2295488c8d0b63a393569d56677bd42b41a Mon Sep 17 00:00:00 2001 From: Akatsukiro Date: Fri, 19 Jan 2024 12:55:36 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20RHEL=E7=B3=BB=E4=BD=BF=E7=94=A8=E5=A4=A7?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E5=8F=B7=E4=BB=A5=E9=81=BF=E5=85=8D=E5=8F=AF?= =?UTF-8?q?=E8=83=BD=E7=9A=84404?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index a3f57b4..c572530 100644 --- a/install.sh +++ b/install.sh @@ -35,7 +35,7 @@ pre_check() { os_version=$VERSION_ID elif [[ $ID == "centos"|| $ID == "rocky" || $ID == "alma" || $ID_LIKE == "rhel" ]]; then systemFlag="3" - os_version=$VERSION_ID + os_version=$(echo $VERSION_ID | awk -F '.' '{print $1}') else echo "您的操作系统为 $PRETTY_NAME ,这是不支持的操作系统" exit 1