add warning for unsupported fedora spins (#461)

This commit is contained in:
Phil Clifford 2022-07-24 01:11:46 +01:00 committed by GitHub
parent 35b90f77e0
commit dea192b785
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -1818,6 +1818,14 @@ if [ -n "${2}" ]; then
echo " - Setting edition to: ${EDITION}"
fi
fi
# Handle odd missing fedora cominations
if [[ $OS == fedora ]] ; then
if [[ ${RELEASE} = "33" && ${EDITION} = "i3" ]] || [[ ${RELEASE} = "34" && ${EDITION} = "Cinnamon" ]] ; then
echo "ERROR! Unsupported combination"
echo " Fedora 33 i3 and Fedora 34 Cinnamon are not available, please choose another Release or Edition"
exit 1;
fi
fi
VM_PATH="${OS}-${RELEASE}-${EDITION}"
validate_release "releases_${OS}"