Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,25 +43,33 @@ print_banner() {
check_system() {
log_info "Checking system compatibility..."

# Exit if not Linux
if [[ "$(uname)" != "Linux" ]]; then
log_error "Unsupported OS detected: $(uname)"
log_error "This script is intended for Linux systems only."
exit 1
fi

if [[ ! -f /etc/os-release ]]; then
log_error "Cannot detect operating system"
log_error "Cannot detect Linux distribution"
exit 1
fi

. /etc/os-release

case $ID in
ubuntu | debian | pop | elementary | zorin | mint)
log_success "Detected supported system: $PRETTY_NAME"
log_success "Detected supported Linux distribution: $PRETTY_NAME"
;;
*)
log_warn "Detected system: $PRETTY_NAME"
log_warn "Detected Linux distribution: $PRETTY_NAME"
log_warn "This script is designed for Ubuntu/Debian-based systems"
log_warn "Proceeding anyway, but some packages might not be available"
;;
esac
}


# Check if user has sudo privileges
check_sudo() {
log_info "Checking sudo privileges..."
Expand Down