diff --git a/setup.sh b/setup.sh index 64174ca..dc83a1c 100755 --- a/setup.sh +++ b/setup.sh @@ -301,7 +301,7 @@ warning_prompt() { log_error "Please ensure you have a backup of your data before proceeding." log_error "This script will modify system files and may require sudo permissions." echo "" - log_info "This script has been tested on Ubuntu 24.04, Ubuntu 24.10, and Fedora 41." + log_info "This script has been tested on Ubuntu 22.04, 24.04, 24.10, Debian 12 and Fedora 41." log_info "Setup starts in 10 seconds, to abort use Ctrl+C to exit NOW." echo "" sleep 10 @@ -403,10 +403,16 @@ check_compatibility() { check_command_availibility "dnf" ;; Ubuntu) + # Check if we are running either 22.04, 24.04 or 24.10 + if ! grep -q "Ubuntu 22.04" /etc/os-release && ! grep -q "Ubuntu 24.04" /etc/os-release && ! grep -q "Ubuntu 24.10" /etc/os-release; then + log_warning "Unsupported Ubuntu version detected. Setup may not work as expected." + log_warning "Supported versions are: Ubuntu 22.04, 24.04, 24.10" + fi log_success "Detected Ubuntu. Proceeding with setup..." check_command_availibility "apt" ;; Debian*) + log_success "Detected Debian. Proceeding with setup..." check_command_availibility "apt" ;; *)