updated since many conflicts
This commit is contained in:
@@ -77,6 +77,8 @@ uninstall=(
|
||||
cachyos-hyprland-settings
|
||||
rofi
|
||||
wallust-git
|
||||
rofi-lbonn-wayland
|
||||
rofi-lbonn-wayland-git
|
||||
)
|
||||
|
||||
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
|
||||
@@ -92,15 +94,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,17 +108,13 @@ 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 hyprland packages.... \n" "${NOTE}"
|
||||
printf "\n%s - Installing ${SKY_BLUE}KooL's hyprland necessary packages${RESET} .... \n" "${NOTE}"
|
||||
|
||||
for PKG1 in "${hypr_package[@]}" "${hypr_package_2[@]}" "${Extra[@]}"; do
|
||||
install_package "$PKG1" 2>&1 | tee -a "$LOG"
|
||||
if [ $? -ne 0 ]; then
|
||||
echo -e "\e[1A\e[K${ERROR} - $PKG1 Package installation failed, Please check the installation logs"
|
||||
exit 1
|
||||
fi
|
||||
install_package "$PKG1" "$LOG"
|
||||
done
|
||||
|
||||
clear
|
||||
|
||||
printf "\n%.0s" {1..2}
|
||||
Reference in New Issue
Block a user