fix: reference repos in /etc instead of /usr/etc

This commit is contained in:
qoijjj
2024-05-14 15:57:11 -07:00
committed by GitHub
parent 76db56ccc1
commit f673ae01f3

View File

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