From 03aa990f35a21483aecd435bcf66cdcfdc0235fa Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Wed, 5 Feb 2025 23:38:49 +0900 Subject: [PATCH] package removal function enhanced --- install-scripts/01-hypr-pkgs.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/install-scripts/01-hypr-pkgs.sh b/install-scripts/01-hypr-pkgs.sh index accd130..603b137 100755 --- a/install-scripts/01-hypr-pkgs.sh +++ b/install-scripts/01-hypr-pkgs.sh @@ -92,15 +92,12 @@ source "$(dirname "$(readlink -f "$0")")/Global_functions.sh" # Set the name of the log file to include the current date and time LOG="Install-Logs/install-$(date +%d-%H%M%S)_hypr-pkgs.log" -# uninstalling conflicting packages -# Initialize a variable to track overall errors +# conflicting packages removal overall_failed=0 - -printf "\n%s - Removing Mako, Dunst, and rofi as they conflict with swaync and rofi-wayland \n" "${NOTE}" +printf "\n%s - ${SKY_BLUE}Removing some packages${RESET} as it conflicts with KooL's Hyprland Dots \n" "${NOTE}" for PKG in "${uninstall[@]}"; do uninstall_package "$PKG" 2>&1 | tee -a "$LOG" if [ $? -ne 0 ]; then - # Track if any uninstallation failed overall_failed=1 fi done @@ -109,6 +106,7 @@ if [ $overall_failed -ne 0 ]; then echo -e "${ERROR} Some packages failed to uninstall. Please check the log." fi +printf "\n%.0s" {1..1} # Installation of main components printf "\n%s - Installing ${SKY_BLUE}KooL's hyprland necessary packages${RESET} .... \n" "${NOTE}"