From 233ff55314d2e4594404d10be826757f1c691166 Mon Sep 17 00:00:00 2001 From: aceforeverd Date: Thu, 26 Sep 2024 11:16:49 +0800 Subject: [PATCH] fix: patch_yum_repo.sh --- patch_yum_repo.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patch_yum_repo.sh b/patch_yum_repo.sh index b771ec2..7852c3a 100755 --- a/patch_yum_repo.sh +++ b/patch_yum_repo.sh @@ -6,6 +6,6 @@ sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo -if [[ "$ARCH" = "aarch64" ]]; then +if [[ "$(arch)" = "aarch64" ]]; then sed -i s/vault.centos.org\\/centos/vault.centos.org\\/altarch/g /etc/yum.repos.d/*.repo fi