fix(rpm-ostree): switch wget to curl for coreos compatibility (#224)

use curl instead of wget in rpm-ostree module so it can be used with ucore/coreos base images
This commit is contained in:
qoijjj 2024-05-10 20:04:01 +02:00 committed by GitHub
parent c3084ad86f
commit bc0cfd7381
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -9,7 +9,7 @@ if [[ ${#REPOS[@]} -gt 0 ]]; then
echo "Adding repositories"
for REPO in "${REPOS[@]}"; do
REPO="${REPO//%OS_VERSION%/${OS_VERSION}}"
wget "${REPO//[$'\t\r\n ']}" -P "/etc/yum.repos.d/"
curl --output-dir "/etc/yum.repos.d/" -O "${REPO//[$'\t\r\n ']}"
done
fi