Skip to content

Commit

Permalink
fix: Don't quote the flags, else dnf will see it as an empty argument…
Browse files Browse the repository at this point in the history
… part 4

Co-authored-by: Gerald Pinder <[email protected]>
  • Loading branch information
fiftydinar and gmpinder authored Dec 24, 2024
1 parent aa92eff commit 8265b85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/dnf/dnf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ if [[ ${#INSTALL_PKGS[@]} -gt 0 && ${#REMOVE_PKGS[@]} -gt 0 ]]; then
elif [[ ${#INSTALL_PKGS[@]} -gt 0 ]]; then
echo "Installing RPMs"
echo_rpm_install
dnf -y "${WEAK_DEPS_FLAG}" install --refresh "${SKIP_UNAVAILABLE_FLAG}" "${SKIP_BROKEN_FLAG}" "${ALLOW_ERASING_FLAG}" "${INSTALL_PKGS[@]}"
dnf -y ${WEAK_DEPS_FLAG} install --refresh ${SKIP_UNAVAILABLE_FLAG} ${SKIP_BROKEN_FLAG} ${ALLOW_ERASING_FLAG} "${INSTALL_PKGS[@]}"
elif [[ ${#REMOVE_PKGS[@]} -gt 0 ]]; then
echo "Removing RPMs"
echo "Removing: ${REMOVE_PKGS[*]}"
Expand Down

0 comments on commit 8265b85

Please sign in to comment.