From 60fa5ca3260e484328c3dd76c8edca7f92a8df11 Mon Sep 17 00:00:00 2001 From: ER Date: Sat, 2 Sep 2023 19:52:49 +0300 Subject: [PATCH] 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 --- modules/rpm-ostree/rpm-ostree.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/rpm-ostree/rpm-ostree.sh b/modules/rpm-ostree/rpm-ostree.sh index e60ea8d..5c89744 100644 --- a/modules/rpm-ostree/rpm-ostree.sh +++ b/modules/rpm-ostree/rpm-ostree.sh @@ -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