From bd8c7c5d95cbca21aae09a923dbde74b68788669 Mon Sep 17 00:00:00 2001 From: Benjy <123623302+brrock@users.noreply.github.com> Date: Thu, 15 Aug 2024 07:43:00 +0100 Subject: [PATCH] Major bug fix --- install-scripts/hyprland.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install-scripts/hyprland.sh b/install-scripts/hyprland.sh index 574e163..b273f06 100755 --- a/install-scripts/hyprland.sh +++ b/install-scripts/hyprland.sh @@ -37,13 +37,13 @@ done printf "${NOTE} Installing Hyprland...\n" # Check if Hyprland folder exists and remove it -#!/bin/bash + # Get the OS name from the release file os_name=$(grep '^ID=' /etc/os-release | tr -d '"' | cut -d= -f2) ID_LIKE=$(grep '^ID_LIKE=' /etc/os-release | cut -d= -f2 | tr -d '"') # Check if the OS is Debian or Ubuntu -if [[ "$ID" == "debian" || ("$ID_LIKE" == *"debian"* && "$ID_LIKE" != *"ubuntu"*) ]]; then +if [[ "$ID" == "debian" || ( "$ID_LIKE" == *"debian"* && "$ID" != "ubuntu" ) ]]; then for PKG1 in "${hyprland[@]}"; do install_package "$PKG1" 2>&1 | tee -a "$LOG" if [ $? -ne 0 ]; then