feat: update compatibility check to include Debian 12 and additional Ubuntu versions
Some checks failed
Nix Format Check / check-format (push) Failing after 37s
Some checks failed
Nix Format Check / check-format (push) Failing after 37s
This commit is contained in:
parent
aca60a2fde
commit
150b6a209e
8
setup.sh
8
setup.sh
@ -301,7 +301,7 @@ warning_prompt() {
|
|||||||
log_error "Please ensure you have a backup of your data before proceeding."
|
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."
|
log_error "This script will modify system files and may require sudo permissions."
|
||||||
echo ""
|
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."
|
log_info "Setup starts in 10 seconds, to abort use Ctrl+C to exit NOW."
|
||||||
echo ""
|
echo ""
|
||||||
sleep 10
|
sleep 10
|
||||||
@ -403,10 +403,16 @@ check_compatibility() {
|
|||||||
check_command_availibility "dnf"
|
check_command_availibility "dnf"
|
||||||
;;
|
;;
|
||||||
Ubuntu)
|
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..."
|
log_success "Detected Ubuntu. Proceeding with setup..."
|
||||||
check_command_availibility "apt"
|
check_command_availibility "apt"
|
||||||
;;
|
;;
|
||||||
Debian*)
|
Debian*)
|
||||||
|
log_success "Detected Debian. Proceeding with setup..."
|
||||||
check_command_availibility "apt"
|
check_command_availibility "apt"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user