fix: mirror script

This commit is contained in:
qoijjj
2024-05-14 15:51:09 -07:00
committed by GitHub
parent 3b9ae540ac
commit 76db56ccc1

View File

@@ -3,6 +3,4 @@
# Tell build process to exit if there are any errors.
set -oue pipefail
for repo in /usr/etc/yum.repos.d/*.repo; do
sed -i 's/metalink?/metalink?protocol=https\&/g' "$repo"
done
find /usr/etc/yum.repos.d/ -name "*.repo" -type f -exec sed -i 's/metalink?/metalink?protocol=https\&/g' {} \;