fix: remove newlines before wget

including the newlines causes filenames to be postfixed with %0A
and thus the repo files to not work

this commit uses the same bashism as above line to remove newlines
from the $REPO var before using it in the wget command
This commit is contained in:
ER
2023-09-02 19:52:49 +03:00
parent 25ac5dd6ef
commit 60fa5ca326

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}" -P "/etc/yum.repos.d/"
wget "${REPO//[$'\t\r\n ']}" -P "/etc/yum.repos.d/"
done
fi