Skip to content

Commit

Permalink
Update dnf.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
fiftydinar authored Dec 22, 2024
1 parent 50d66f1 commit 0b9c68f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions modules/dnf/dnf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@ if [[ ${#REPOS[@]} -gt 0 ]]; then
repo="${repo//%OS_VERSION%/${OS_VERSION}}"
# Extract copr repo array element properly here without JSON brackets
if [[ "${repo}" == "{\"copr\":\""*"\"}" ]]; then
repo="$(echo "copr: $(echo "${repo}" | jq -r '.copr')")"
REPOS[$i]="$(echo "copr: $(echo "${repo}" | jq -r '.copr')")"
else
REPOS[$i]="${repo//[$'\t\r\n ']}"
fi
REPOS[$i]="${repo//[$'\t\r\n ']}"
done
# dnf config-manager & dnf copr don't support adding multiple repositories at once, hence why for/done loop is used
for repo in "${REPOS[@]}"; do
Expand Down

0 comments on commit 0b9c68f

Please sign in to comment.