fix(rpm-ostree): Only extract repo name from the local repo when copying it
This commit is contained in:
parent
d9d7d0968e
commit
50c9c15c80
1 changed files with 1 additions and 1 deletions
|
|
@ -12,7 +12,7 @@ if [[ ${#REPOS[@]} -gt 0 ]]; then
|
|||
if [[ "${REPO}" =~ ^https?:\/\/.* ]]; then
|
||||
curl --output-dir "/etc/yum.repos.d/" -O "${REPO//[$'\t\r\n ']}"
|
||||
elif [[ ! "${REPO}" =~ ^https?:\/\/.* ]] && [[ "${REPO}" == *".repo" ]] && [[ -f "${CONFIG_DIRECTORY}/rpm-ostree/${REPO}" ]]; then
|
||||
cp "${CONFIG_DIRECTORY}/rpm-ostree/${REPO}" "/etc/yum.repos.d/${REPO}"
|
||||
cp "${CONFIG_DIRECTORY}/rpm-ostree/${REPO}" "/etc/yum.repos.d/${REPO##*/}"
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue