From ec62d43851aa146b092578a4b0da29b9699d55b9 Mon Sep 17 00:00:00 2001 From: Super Manito <68613938+SuperManito@users.noreply.github.com> Date: Wed, 12 Nov 2025 10:06:00 +0800 Subject: [PATCH] bug fix --- ChangeMirrors.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ChangeMirrors.sh b/ChangeMirrors.sh index 70eb92e..313cdd0 100755 --- a/ChangeMirrors.sh +++ b/ChangeMirrors.sh @@ -1,6 +1,6 @@ #!/bin/bash ## Author: SuperManito -## Modified: 2025-11-04 +## Modified: 2025-11-12 ## License: MIT ## GitHub: https://github.com/SuperManito/LinuxMirrors ## Website: https://linuxmirrors.cn @@ -2598,7 +2598,8 @@ function change_mirrors_RedHat() { 10) sed -e "s|^# baseurl=https|baseurl=${WEB_PROTOCOL}|g" \ -e "s|^mirrorlist=|#mirrorlist=|g" \ - -e "s|vault.almalinux.org|${SOURCE}/${SOURCE_BRANCH}|g" \ + -e "s|vault.almalinux.org|${SOURCE_VAULT:-"${SOURCE}"}/${SOURCE_VAULT_BRANCH:-almalinux-vault}|g" \ + -e "s|repo.almalinux.org/almalinux|${SOURCE}/${SOURCE_BRANCH}|g" \ -i \ almalinux-appstream.repo \ almalinux-baseos.repo \