Update hyprland.sh

This commit is contained in:
Benjy 2024-08-14 15:40:55 +01:00 committed by GitHub
parent 64da35b0a1
commit 2d407f2c71
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -47,7 +47,7 @@ if [[ "$ID" == "debian" || ("$ID_LIKE" == *"debian"* && "$ID_LIKE" != *"ubuntu"*
for PKG1 in "${hyprland[@]}"; do for PKG1 in "${hyprland[@]}"; do
install_package "$PKG1" 2>&1 | tee -a "$LOG" install_package "$PKG1" 2>&1 | tee -a "$LOG"
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
echo -e "\e[1A\e[K${ERROR} - $PKG1 Hyprland installation failed, Please check the installation logs" echo -e "\e[1A\e[K${ERROR} - $PKG1 installation failed, Please check the installation logs"
exit 1 exit 1
fi fi
done done
@ -59,7 +59,7 @@ elif [[ "$ID" == "ubuntu" || "$ID_LIKE" == *"debian ubuntu"* ]]; then
for PKG1 in "${hyprland[@]}"; do for PKG1 in "${hyprland[@]}"; do
install_package "$PKG1" 2>&1 | tee -a "$LOG" install_package "$PKG1" 2>&1 | tee -a "$LOG"
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
echo -e "\e[1A\e[K${ERROR} - $PKG1 Hyprland installation failed, Please check the installation logs" echo -e "\e[1A\e[K${ERROR} - $PKG1 installation failed, Please check the installation logs"
exit 1 exit 1
fi fi
done done