diff options
| author | JaKooLit <ejhay.games@gmail.com> | 2025-03-10 00:30:19 +0900 |
|---|---|---|
| committer | JaKooLit <ejhay.games@gmail.com> | 2025-03-10 00:30:19 +0900 |
| commit | 76a3903bb29294f86acdf1f40995d9e4471ce07f (patch) | |
| tree | fb246e1e1f2b912a22852c11bd505467207885a4 /Distro-Hyprland.sh | |
| parent | 8fb7cccc56aef190a165d3998b06e0d8824f0b87 (diff) | |
some changes
Diffstat (limited to 'Distro-Hyprland.sh')
| -rwxr-xr-x | Distro-Hyprland.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Distro-Hyprland.sh b/Distro-Hyprland.sh index 0be7c4f6..ff0bae03 100755 --- a/Distro-Hyprland.sh +++ b/Distro-Hyprland.sh @@ -30,14 +30,14 @@ else fi # Define package managers, Git install commands, and dynamic variables for each distro -if [ "$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" Distro="Debian-Hyprland" Github_URL="https://github.com/JaKooLit/$Distro.git" Distro_DIR="$HOME/$Distro" -elif [ "$distro_name" == "Ubuntu" ]; then +elif [ "$distro_name" = "Ubuntu" ]; then PACKAGE_MANAGER="apt" INSTALL_CMD="sudo apt install -y" GIT_INSTALL_CMD="sudo apt install -y git" @@ -92,7 +92,7 @@ elif command -v zypper &> /dev/null; then Distro="OpenSUSE-Hyprland" Github_URL="https://github.com/JaKooLit/$Distro.git" Distro_DIR="$HOME/$Distro" -elif [ "$distro_name" == "NixOS" ]; then +elif [ "$distro_name" = "NixOS" ]; then PACKAGE_MANAGER="nix" INSTALL_CMD="nix-shell" GIT_INSTALL_CMD="nix-shell -p git curl pciutils" @@ -124,7 +124,7 @@ else echo "${MAGENTA}$Distro_DIR does not exist. Cloning the repository...${RESET}" # Clone the specific branch for Ubuntu versions only - if [ "$distro_name" == "Ubuntu" ]; then + if [ "$distro_name" = "Ubuntu" ]; then echo "${INFO} Cloning from branch ${Github_URL_branch} for Ubuntu $distro_version." git clone --depth=1 -b "$Github_URL_branch" "$Github_URL" "$Distro_DIR" else @@ -134,4 +134,4 @@ else cd "$Distro_DIR" chmod +x install.sh ./install.sh -fi
\ No newline at end of file +fi |
