From 0a07a2fa01bd9883475e9894ae468b75a362bda6 Mon Sep 17 00:00:00 2001 From: fiftydinar <65243233+fiftydinar@users.noreply.github.com> Date: Mon, 14 Oct 2024 23:28:53 +0200 Subject: [PATCH] Revert "chore(akmods): Simplify syntax for if rpmfusion condition" --- modules/akmods/akmods.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/akmods/akmods.sh b/modules/akmods/akmods.sh index f163619..f486f34 100644 --- a/modules/akmods/akmods.sh +++ b/modules/akmods/akmods.sh @@ -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