From d474a609157188f9316baa48fbb9f083d70fc63d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=AC=E5=93=A5=E4=BE=83=E4=BE=83=E4=BE=83ygkkk?= Date: Thu, 18 Jan 2024 08:54:18 +0000 Subject: [PATCH] Update CFcdnym.sh --- point/CFcdnym.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/point/CFcdnym.sh b/point/CFcdnym.sh index 272612d..da7cfb7 100644 --- a/point/CFcdnym.sh +++ b/point/CFcdnym.sh @@ -8,7 +8,7 @@ elif [ -x "$(command -v apt-get)" ]; then apt update -y apt install lzip unzip qrencode -y elif [ -x "$(command -v yum)" ]; then -vsid=$(grep -i version_id /etc/os-release | cut -d \" -f2 | cut -d . -f1) +vsid=$(grep -i version_id /etc/os-release 2>/dev/null | cut -d \" -f2 | cut -d . -f1) if [[ ${vsid} =~ 8 ]]; then cd /etc/yum.repos.d/ && mkdir backup && mv *repo backup/ curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-8.repo