diff --git a/build-kmod-xpadneo.sh b/build-kmod-xpadneo.sh index 305cd66c..fa7e1340 100755 --- a/build-kmod-xpadneo.sh +++ b/build-kmod-xpadneo.sh @@ -1,6 +1,6 @@ #!/bin/sh -set -oeux pipefail +set -oux pipefail ARCH="$(rpm -E '%_arch')" @@ -10,12 +10,13 @@ RELEASE="$(rpm -E '%fedora')" cp /tmp/ublue-os-akmods-addons/rpmbuild/SOURCES/negativo17-fedora-multimedia.repo /etc/yum.repos.d/ if [[ "${FEDORA_MAJOR_VERSION}" -ge 41 ]]; then - dnf search akmod-xpadneo|grep -q "akmod-xpadneo" - if [ 1 -eq $? ]; then + if dnf search akmod-xpadneo|grep -qv "akmod-xpadneo"; then echo "Skipping build of xpadneo; net yet provided by negativo17" fi fi +set -e pipefail + ### BUILD xpadneo (succeed or fail-fast with debug output) dnf install -y \ akmod-xpadneo-*.fc${RELEASE}.${ARCH}