fix installer script
Some checks failed
CI / test-build (push) Has been cancelled

This commit is contained in:
2025-12-15 16:47:48 +07:00
parent b4ef76f0d0
commit 1c53988cbd
8 changed files with 22 additions and 15 deletions

View File

@@ -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