From 42c594bdef395a42f33d87d9c921e75b391eda3f Mon Sep 17 00:00:00 2001 From: fiftydinar <65243233+fiftydinar@users.noreply.github.com> Date: Mon, 14 Oct 2024 23:22:54 +0200 Subject: [PATCH] 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 f486f34c..f163619b 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)" != "rpmfusion-free-release"* && "$(rpm -q rpmfusion-nonfree-release)" != "rpmfusion-nonfree-release"* ]]; then +if rpm -q rpmfusion-free-release &>/dev/null && rpm -q rpmfusion-nonfree-release &>/dev/null; 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