Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

Commit

Permalink
fix: remove newlines before wget
Browse files Browse the repository at this point in the history
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
  • Loading branch information
xynydev committed Sep 2, 2023
1 parent 25ac5dd commit 60fa5ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/rpm-ostree/rpm-ostree.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 60fa5ca

Please sign in to comment.