Skip to content

Commit

Permalink
fix: Adding local file repos
Browse files Browse the repository at this point in the history
  • Loading branch information
fiftydinar authored Dec 23, 2024
1 parent 1a81609 commit a72ae5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/dnf/dnf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ if [[ ${#REPOS[@]} -gt 0 ]]; then
echo "Adding repository URL: '${repo}'"
dnf -y config-manager addrepo --from-repofile="${repo}"
elif [[ "${repo}" == *".repo" ]] && [[ -f "${CONFIG_DIRECTORY}/dnf/${repo}" ]]; then
echo "Adding repository file: '${repo}'"
dnf -y config-manager addrepo --from-repofile="${repo}"
echo "Adding repository file: '${repo##*/}'"
dnf -y config-manager addrepo --from-repofile="${CONFIG_DIRECTORY}/dnf/${repo}"
elif [[ "${repo}" == "COPR "* ]]; then
echo "Adding COPR repository: '${repo#COPR }'"
dnf -y copr enable "${repo#COPR }"
Expand Down

0 comments on commit a72ae5c

Please sign in to comment.