From 189fbee8251454bed063c4c2a2ad3e383221b0dd Mon Sep 17 00:00:00 2001 From: Benjamin Sherman Date: Fri, 9 Feb 2024 10:14:59 -0600 Subject: [PATCH] chore(ci): minor improvement for RPMFUSION_MIRROR (#496) --- install.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 35ffce5..c10142c 100755 --- a/install.sh +++ b/install.sh @@ -29,5 +29,8 @@ fi ## install packages direct from github /tmp/github-release-install.sh sigstore/cosign x86_64 -# reset forced use of single rpmfusion mirror -rename -v .repo.bak .repo /etc/yum.repos.d/rpmfusion-*repo.bak +if [ -n "${RPMFUSION_MIRROR}" ]; then + # reset forced use of single rpmfusion mirror + echo "Revert from single rpmfusion mirror: ${RPMFUSION_MIRROR}" + rename -v .repo.bak .repo /etc/yum.repos.d/rpmfusion-*repo.bak +fi