This commit is contained in:
@@ -110,8 +110,10 @@ detect_distro() {
|
||||
fi
|
||||
|
||||
# Check for Ubuntu 24.04 (Noble Numbat)
|
||||
if [[ "$VERSION" != "24.04" ]] && [[ "$CODENAME" != "noble" ]]; then
|
||||
echo -e "${YELLOW}Warning: This installer is optimized for Ubuntu 24.04${NC}"
|
||||
# SECURITY: Use OR (||) to warn if EITHER version or codename doesn't match
|
||||
# This ensures we catch all incompatible systems, not just when both are wrong
|
||||
if [[ "$VERSION" != "24.04" ]] || [[ "$CODENAME" != "noble" ]]; then
|
||||
echo -e "${YELLOW}Warning: This installer is optimized for Ubuntu 24.04 (Noble Numbat)${NC}"
|
||||
echo " Detected: Ubuntu $VERSION ($CODENAME)"
|
||||
echo " Continuing anyway, but some features may not work correctly"
|
||||
read -p "Continue anyway? (y/n) " -n 1 -r
|
||||
|
||||
Reference in New Issue
Block a user