From 40a1e3ac846495027e12ddbdeb783f1134eba38f Mon Sep 17 00:00:00 2001 From: gfdgd_xi <3025613752@qq.com> Date: Mon, 16 Sep 2024 11:46:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=9C=89=E6=97=B6=E5=9B=A0?= =?UTF-8?q?=E4=B8=BAupdate=E5=87=BA=E9=97=AE=E9=A2=98=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E6=AD=A3=E5=B8=B8=E6=9E=84=E5=BB=BA=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/configure-building-enviroment.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/configure-building-enviroment.sh b/.github/workflows/configure-building-enviroment.sh index a6dacfc..0055c1c 100755 --- a/.github/workflows/configure-building-enviroment.sh +++ b/.github/workflows/configure-building-enviroment.sh @@ -20,7 +20,14 @@ echo "deb [trusted=true] https://repo-gxde.gfdgdxi.top/gxde-os/bixie ./" >> /etc if [[ $1 == "loong64" ]]; then echo "deb [trusted=true] http://mirror.sjtu.edu.cn/debian-ports unreleased main" > /etc/apt/sources.list.d/debian-unreleased.list fi -apt update +for i in {1..8}; +do + apt update -y + if [[ $? == 0 ]]; then + break + fi + sleep 1 +done apt install dpkg-dev sudo neofetch debian-ports-archive-keyring debian-archive-keyring -y neofetch #if [[ `arch` != "x86_64" ]]; then @@ -44,5 +51,6 @@ do if [[ $? == 0 ]]; then break fi + sleep 1 done exit 0 \ No newline at end of file