diff options
| author | JaKooLit <ejhay.games@gmail.com> | 2025-03-12 13:05:30 +0900 |
|---|---|---|
| committer | JaKooLit <ejhay.games@gmail.com> | 2025-03-12 13:05:30 +0900 |
| commit | b69e5de3782fcf82918847b1a411d8027adb0cc3 (patch) | |
| tree | 53ac5f5ec3065ee9b3120c60750be402c5ae2589 /Distro-Hyprland.sh | |
| parent | 4865acc2c41df0583df05f8239dc5ff19fe5bc60 (diff) | |
updated Distro-Hyprland.sh script
Diffstat (limited to 'Distro-Hyprland.sh')
| -rwxr-xr-x | Distro-Hyprland.sh | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Distro-Hyprland.sh b/Distro-Hyprland.sh index ff0bae03..ff88325f 100755 --- a/Distro-Hyprland.sh +++ b/Distro-Hyprland.sh @@ -47,30 +47,30 @@ elif [ "$distro_name" = "Ubuntu" ]; then Distro="Ubuntu-Hyprland" Github_URL="https://github.com/JaKooLit/$Distro.git" Github_URL_branch="24.04" - Distro_DIR="$HOME/$Distro" + Distro_DIR="$HOME/$Distro-$Github_URL_branch" echo "${INFO} Ubuntu 24.04 detected. Customizing setup for Ubuntu 24.04." ;; "24.10") Distro="Ubuntu-Hyprland" Github_URL="https://github.com/JaKooLit/$Distro.git" Github_URL_branch="24.10" - Distro_DIR="$HOME/$Distro" + Distro_DIR="$HOME/$Distro-$Github_URL_branch" echo "${INFO} Ubuntu 24.10 detected. Customizing setup for Ubuntu 24.10." ;; "25.04") Distro="Ubuntu-Hyprland" Github_URL="https://github.com/JaKooLit/$Distro.git" Github_URL_branch="25.04" - Distro_DIR="$HOME/$Distro" + Distro_DIR="$HOME/$Distro-$Github_URL_branch" echo "${INFO} Ubuntu 25.04 detected. Customizing setup for Ubuntu 25.04." ;; *) Distro="Ubuntu-Hyprland" - Github_URL="https://github.com/JaKooLit/$Distro.git" - Distro_DIR="$HOME/$Distro" - echo "${INFO} Ubuntu version $distro_version detected. Using default Ubuntu setup." + echo "${ERROR} Unsupported distribution: $distro_version. Exiting." + exit 1 ;; esac + elif command -v pacman &> /dev/null; then PACKAGE_MANAGER="pacman" INSTALL_CMD="sudo pacman -S --noconfirm" |
