From a72ae5cb4a1490a4d789385cd04411b5b5b0e72a Mon Sep 17 00:00:00 2001 From: fiftydinar <65243233+fiftydinar@users.noreply.github.com> Date: Mon, 23 Dec 2024 08:43:04 +0100 Subject: [PATCH] fix: Adding local file repos --- modules/dnf/dnf.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/dnf/dnf.sh b/modules/dnf/dnf.sh index a251a0e..3d49fd3 100644 --- a/modules/dnf/dnf.sh +++ b/modules/dnf/dnf.sh @@ -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 }"