diff --git a/hyprland.sh b/hyprland.sh index a0571d9..58ce58d 100644 --- a/hyprland.sh +++ b/hyprland.sh @@ -36,14 +36,34 @@ getImports() { rm "$import" } +checkEnv() { + if $debian; then + echo_info "Using debian.. checking for compatibility.." + if ! $trixie; then + echo_error "You are not using trixie, this script can currently only run on trixie (13)!" + echo_error "trixie: $trixie" + echo_error "bookworm: $bookworm" + echo_error "bullseye: $bullseye" + echo_error "buster: $buster" + return 69 + else + echo_info "Using trixie.. good choice" + return 0 + fi + elif $arch; then + echo_info "Using arch linux.. You really shouldn't get any errors :)" + return 0 + fi +} + askThings() { echo_note "Do you want to install hyprland? (y/N)" read -r askHyprland