From 9d13c87ea3178908848d118838497c9aa40dc1eb Mon Sep 17 00:00:00 2001 From: fiftydinar <65243233+fiftydinar@users.noreply.github.com> Date: Sun, 22 Dec 2024 18:08:14 +0100 Subject: [PATCH] chore: Auto-confirm prompts (`-y`) when adding repos --- modules/dnf/dnf.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/dnf/dnf.sh b/modules/dnf/dnf.sh index 49edf90..2603313 100644 --- a/modules/dnf/dnf.sh +++ b/modules/dnf/dnf.sh @@ -35,13 +35,13 @@ if [[ ${#REPOS[@]} -gt 0 ]]; then for repo in "${REPOS[@]}"; do if [[ "${repo}" =~ ^https?:\/\/.* ]]; then echo "Adding repository URL: '${repo}'" - dnf config-manager addrepo --from-repofile="${repo}" + dnf -y config-manager addrepo --from-repofile="${repo}" elif [[ "${repo}" == *".repo" ]] && [[ -f "${CONFIG_DIRECTORY}/dnf/${repo}" ]]; then echo "Adding repository file: '${repo}'" - dnf config-manager addrepo --from-repofile="${repo}" + dnf -y config-manager addrepo --from-repofile="${repo}" elif [[ "${repo}" == "copr: "* ]]; then echo "Adding COPR repository: '${repo#copr: }'" - dnf copr enable "${repo#copr: }" + dnf -y copr enable "${repo#copr: }" fi done fi