diff --git a/os/get-repo.sh b/os/get-repo.sh index 8430080..505fde5 100644 --- a/os/get-repo.sh +++ b/os/get-repo.sh @@ -19,12 +19,13 @@ case $num in 1) cd /etc/yum.repos.d/ && \ dirname=$(mktemp -d repo-XXXXX) - mv *.repo $dirname && \ - cd $dirname && \ - for i in "nexus-Centos-Base.repo nexus-epel.repo nexus-mysql.repo nexus-docker-ce.repo" + mv *.repo $dirname 2>/dev/null + echo "开始下载资源,请等待" + for i in nexus-Centos-Base.repo nexus-epel.repo nexus-mysql.repo nexus-docker-ce.repo nexus-kubernetes.repo do - curl -o $i https://gitea.beyourself.org.cn/newrain001/download/raw/branch/master/repo/$i + curl -s -o $i "https://gitea.beyourself.org.cn/newrain001/download/raw/branch/master/repo/$i" echo "yum 源 $i 配置完成" + sleep 0.5 done echo "开始创建缓存" yum clean all && \ @@ -57,4 +58,4 @@ q) *) echo "输入有误,请重新输入" ;; -esac \ No newline at end of file +esac