From 0bdd2fb29ed045fe818a64521780efb3d3c0662a Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Wed, 5 Feb 2025 23:22:17 +0900 Subject: [PATCH] minor update --- install-scripts/01-hypr-pkgs.sh | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/install-scripts/01-hypr-pkgs.sh b/install-scripts/01-hypr-pkgs.sh index 5bc5adf..06431f6 100755 --- a/install-scripts/01-hypr-pkgs.sh +++ b/install-scripts/01-hypr-pkgs.sh @@ -86,6 +86,15 @@ 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" +# Remove conflicting packages +printf "\n%s - ${SKY_BLUE}removing some packages${RESET} inorder for dots to work properly \n" "${NOTE}" +for PKG in "${uninstall[@]}"; do + uninstall_package "$PKG" "$LOG" +done + +printf "\n%.0s" {1..1} + + # Installation of main components printf "\n%s - Installing ${SKY_BLUE}KooL's hyprland necessary packages${RESET} .... \n" "${NOTE}" @@ -93,13 +102,6 @@ for PKG1 in "${hypr_package[@]}" "${hypr_package_2[@]}" "${Extra[@]}"; do install_package "$PKG1" "$LOG" done -printf "\n%s - ${SKY_BLUE}Uninstalling some packages${RESET} inorder for dots to work properly \n" "${NOTE}" -for PKG in "${uninstall[@]}"; do - uninstall_package "$PKG" "$LOG" -done - -printf "\n%.0s" {1..1} - for PKG2 in "${force[@]}"; do re_install_package "$PKG2" "$LOG" done