diff options
| author | JaKooLit <ejhay.games@gmail.com> | 2025-03-10 00:25:28 +0900 |
|---|---|---|
| committer | JaKooLit <ejhay.games@gmail.com> | 2025-03-10 00:25:28 +0900 |
| commit | 8fb7cccc56aef190a165d3998b06e0d8824f0b87 (patch) | |
| tree | 749c6a3ac8c79683145588ff09475bb6fe52e715 | |
| parent | a57353a4d95ab8f6279e77d9da3df246f8fc00d0 (diff) | |
some changes
| -rwxr-xr-x | Distro-Hyprland.sh | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/Distro-Hyprland.sh b/Distro-Hyprland.sh index b92fa1f9..0be7c4f6 100755 --- a/Distro-Hyprland.sh +++ b/Distro-Hyprland.sh @@ -30,35 +30,7 @@ else fi # Define package managers, Git install commands, and dynamic variables for each distro -if command -v pacman &> /dev/null; then - PACKAGE_MANAGER="pacman" - INSTALL_CMD="sudo pacman -S --noconfirm" - GIT_INSTALL_CMD="sudo pacman -S git --noconfirm" - Distro="Arch-Hyprland" - Github_URL="https://github.com/JaKooLit/$Distro.git" - Distro_DIR="$HOME/$Distro" -elif command -v dnf &> /dev/null; then - PACKAGE_MANAGER="dnf" - INSTALL_CMD="sudo dnf install -y" - GIT_INSTALL_CMD="sudo dnf install -y git" - Distro="Fedora-Hyprland" - Github_URL="https://github.com/JaKooLit/$Distro.git" - Distro_DIR="$HOME/$Distro" -elif command -v zypper &> /dev/null; then - PACKAGE_MANAGER="zypper" - INSTALL_CMD="sudo zypper install -y" - GIT_INSTALL_CMD="sudo zypper install -y git" - Distro="OpenSUSE-Hyprland" - Github_URL="https://github.com/JaKooLit/$Distro.git" - Distro_DIR="$HOME/$Distro" -elif [ "$distro_name" == "NixOS" ]; then - PACKAGE_MANAGER="nix" - INSTALL_CMD="nix-shell" - GIT_INSTALL_CMD="nix-shell -p git curl pciutils" - Distro="NixOS-Hyprland" - Github_URL="https://github.com/JaKooLit/$Distro.git" - Distro_DIR="$HOME/$Distro" -elif [ "$distro_name" == "Debian GNU/Linux" ]; then +if [ "$distro_name" == "Debian GNU/Linux" ]; then PACKAGE_MANAGER="apt" INSTALL_CMD="sudo apt install -y" GIT_INSTALL_CMD="sudo apt install -y git" @@ -99,6 +71,34 @@ elif [ "$distro_name" == "Ubuntu" ]; then echo "${INFO} Ubuntu version $distro_version detected. Using default Ubuntu setup." ;; esac +elif command -v pacman &> /dev/null; then + PACKAGE_MANAGER="pacman" + INSTALL_CMD="sudo pacman -S --noconfirm" + GIT_INSTALL_CMD="sudo pacman -S git --noconfirm" + Distro="Arch-Hyprland" + Github_URL="https://github.com/JaKooLit/$Distro.git" + Distro_DIR="$HOME/$Distro" +elif command -v dnf &> /dev/null; then + PACKAGE_MANAGER="dnf" + INSTALL_CMD="sudo dnf install -y" + GIT_INSTALL_CMD="sudo dnf install -y git" + Distro="Fedora-Hyprland" + Github_URL="https://github.com/JaKooLit/$Distro.git" + Distro_DIR="$HOME/$Distro" +elif command -v zypper &> /dev/null; then + PACKAGE_MANAGER="zypper" + INSTALL_CMD="sudo zypper install -y" + GIT_INSTALL_CMD="sudo zypper install -y git" + Distro="OpenSUSE-Hyprland" + Github_URL="https://github.com/JaKooLit/$Distro.git" + Distro_DIR="$HOME/$Distro" +elif [ "$distro_name" == "NixOS" ]; then + PACKAGE_MANAGER="nix" + INSTALL_CMD="nix-shell" + GIT_INSTALL_CMD="nix-shell -p git curl pciutils" + Distro="NixOS-Hyprland" + Github_URL="https://github.com/JaKooLit/$Distro.git" + Distro_DIR="$HOME/$Distro" else echo "${ERROR} Unsupported distribution: $distro_name. Exiting." exit 1 @@ -134,4 +134,4 @@ else cd "$Distro_DIR" chmod +x install.sh ./install.sh -fi +fi
\ No newline at end of file |
