fix: Remove second handle_missing function

This commit is contained in:
zen0bit 2024-04-21 10:52:00 +02:00 committed by Martin Wimpress
parent 218d8ca3fd
commit f555b2a3d9
1 changed files with 0 additions and 19 deletions

View File

@ -3487,25 +3487,6 @@ fi
LANGS=()
handle_missing() {
# Handle odd missing Fedora combinations
if [[ $OS == fedora ]] ; then
if [[ ${RELEASE} = "33" && ${EDITION} = "i3" ]] || [[ ${RELEASE} = "34" && ${EDITION} = "Cinnamon" ]] || [[ "${RELEASE}" < "39" && ${EDITION} = "Onyx" ]]; then
echo "ERROR! Unsupported combination"
echo " Fedora ${RELEASE} ${EDITION} is not available, please choose another Release or Edition"
exit 1;
fi
fi
# Handle missing Manjaro Sway minimal
if [[ $OS == manjaro ]] ; then
if [[ ${RELEASE} == "sway" && ${EDITION} == "minimal" ]] ; then
echo "ERROR! Unsupported combination"
echo " Manjaro Sway does not have a minimal edition"
exit 1;
fi
fi
}
CURL=$(command -v curl)
if [ ! -e "${CURL}" ]; then
echo "ERROR! curl not found. Please make install curl"