diff --git a/build-prep.sh b/build-prep.sh index 8db959e1..7d012a08 100755 --- a/build-prep.sh +++ b/build-prep.sh @@ -8,7 +8,7 @@ ARCH="$(rpm -E '%_arch')" RELEASE="$(rpm -E '%fedora')" # Modularity repositories are not available on Fedora 39 and above, so don't try to disable them -if [[ "${FEDORA_VERSION}" -le 38 ]]; then +if [[ "${FEDORA_MAJOR_VERSION}" -le 38 ]]; then sed -i 's@enabled=1@enabled=0@g' /etc/yum.repos.d/fedora-{cisco-openh264,modular,updates-modular}.repo else sed -i 's@enabled=1@enabled=0@g' /etc/yum.repos.d/fedora-cisco-openh264.repo