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
6 changes: 3 additions & 3 deletions cursor_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ validate_os() {
local os_name
spinner "Checking system compatibility..." "sleep 1"
os_name=$(grep -i '^NAME=' /etc/os-release | cut -d= -f2 | tr -d '"')
grep -iqE "ubuntu|kubuntu|xubuntu|lubuntu|pop!_os|elementary|zorin|linux mint" /etc/os-release || {
logg error "$(printf "\n This script is designed exclusively for Ubuntu and its popular derivatives.\n Detected: %s. \n Exiting..." "$os_name")"; exit 1
grep -iqE "ubuntu|kubuntu|xubuntu|lubuntu|pop!_os|elementary|zorin|linux mint|debian gnu/linux" /etc/os-release || {
logg error "$(printf "\n This script is designed exclusively for Debian and Ubuntu-based distributions.\n Detected: %s. \n Exiting..." "$os_name")"; exit 1
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe use "Debian and Debian-based (a.g Ubuntu, Kubuntu, Xubuntu and more)" instead?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Idk, Ubuntu is indeed a derivative of Debian, but I think mentioning both is probably clearer.

}
logg success "$(echo -e "Detected $os_name (Ubuntu or derivative). System is compatible.")"
logg success "$(echo -e "Detected $os_name (Debian/Ubuntu-based). System is compatible.")"
}

install_script_alias() {
Expand Down