From b72710f46f309064323f28ca138f3018ec1057d5 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Thu, 30 Nov 2023 01:33:22 +0900 Subject: [PATCH] updated hyprland.sh script --- install-scripts/hyprland.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/install-scripts/hyprland.sh b/install-scripts/hyprland.sh index e0db20b..421055a 100644 --- a/install-scripts/hyprland.sh +++ b/install-scripts/hyprland.sh @@ -43,7 +43,13 @@ install_package() { } # Removing outdated Hyprland from extra repo to avoid conflict -sudo pacman -R hyprland --noconfirm "$1" 2>&1 | tee -a "$LOG" +printf "${YELLOW} Checking for other hyprland packages and remove if any..${RESET}\n" +if pacman -Qs hyprland > /dev/null; then + printf "${YELLOW} Hyprland detected. uninstalling to install Hyprland-git...${RESET}\n" + for hyprnvi in hyprland hyprland-nvidia hyprland-nvidia-git hyprland-nvidia-hidpi-git; do + sudo pacman -R --noconfirm "$hyprnvi" 2>/dev/null | tee -a "$LOG" || true + done +fi # Hyprland printf "${NOTE} Installing Hyprland Packages...\n"