Update CFcdnym.sh

This commit is contained in:
甬哥侃侃侃ygkkk 2024-01-18 08:54:18 +00:00
parent fb248c2fe4
commit d474a60915
1 changed files with 1 additions and 1 deletions

View File

@ -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