chore(rpm-ostree): Use link for the URL instead of repo name for non-copr repo
This commit is contained in:
parent
53cb2982e0
commit
c6f5309757
1 changed files with 2 additions and 2 deletions
|
|
@ -20,9 +20,9 @@ if [[ ${#REPOS[@]} -gt 0 ]]; then
|
|||
elif [[ "${REPO}" =~ ^https?:\/\/.* ]] && [[ "${REPO}" != "https://copr.fedorainfracloud.org/coprs/"* ]]; then
|
||||
CLEAN_REPO_NAME=$(echo "${REPO}" | sed 's/^https\?:\/\///')
|
||||
|
||||
echo "Downloading repo file ${CLEAN_REPO_NAME}"
|
||||
echo "Downloading repo file ${REPO}"
|
||||
curl -fs -o "/etc/yum.repos.d/${CLEAN_REPO_NAME//\//.}" "${REPO//[$'\t\r\n ']}"
|
||||
echo "Downloaded repo file ${CLEAN_REPO_NAME}"
|
||||
echo "Downloaded repo file ${REPO}"
|
||||
elif [[ ! "${REPO}" =~ ^https?:\/\/.* ]] && [[ "${REPO}" == *".repo" ]] && [[ -f "${CONFIG_DIRECTORY}/rpm-ostree/${REPO}" ]]; then
|
||||
cp "${CONFIG_DIRECTORY}/rpm-ostree/${REPO}" "/etc/yum.repos.d/${REPO##*/}"
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue