Skip to content

Commit

Permalink
Revert "chore(akmods): Simplify syntax for if rpmfusion condition"
Browse files Browse the repository at this point in the history
  • Loading branch information
fiftydinar authored Oct 14, 2024
1 parent 42c594b commit 0a07a2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/akmods/akmods.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ENABLE_AKMODS_REPO() {
}

INSTALL_RPM_FUSION() {
if rpm -q rpmfusion-free-release &>/dev/null && rpm -q rpmfusion-nonfree-release &>/dev/null; then
if [[ "$(rpm -q rpmfusion-free-release)" != "rpmfusion-free-release"* && "$(rpm -q rpmfusion-nonfree-release)" != "rpmfusion-nonfree-release"* ]]; then
rpm-ostree install \
https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-${OS_VERSION}.noarch.rpm \
https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-${OS_VERSION}.noarch.rpm
Expand Down

0 comments on commit 0a07a2f

Please sign in to comment.