From 35ca471c926b3e47f989cd32b369f2098ad4e1b2 Mon Sep 17 00:00:00 2001 From: "Ja.KooLit" Date: Wed, 28 Aug 2024 18:34:33 +0900 Subject: [PATCH 1/2] updated install.sh to check if Hyprland is installed and will give an error message --- install.sh | 36 ++++++++++++++++++++++-------------- 1 file changed, 22 insertions(+), 14 deletions(-) diff --git a/install.sh b/install.sh index ac37dbc..8b3456a 100755 --- a/install.sh +++ b/install.sh @@ -224,20 +224,28 @@ fi clear -printf "\n${OK} Yey! Installation Completed.\n" -printf "\n" -sleep 2 -printf "\n${NOTE} You can start Hyprland by typing Hyprland (IF SDDM is not installed) (note the capital H!).\n" -printf "\n" -printf "\n${NOTE} It is highly recommended to reboot your system.\n\n" +# Check if either hyprland or hyprland-git is installed +if dpkg -l | grep -qw hyprland || dpkg -l | grep -qw hyprland-git; then + printf "\n${OK} Yey! Installation Completed.\n" + sleep 2 + printf "\n${NOTE} You can start Hyprland by typing Hyprland (IF SDDM is not installed) (note the capital H!).\n" + printf "\n" + printf "\n${NOTE} It is highly recommended to reboot your system.\n\n" -read -rp "${CAT} Would you like to reboot now? (y/n): " HYP + # Prompt user to reboot + read -rp "${CAT} Would you like to reboot now? (y/n): " HYP -if [[ "$HYP" =~ ^[Yy]$ ]]; then - if [[ "$nvidia" == "Y" ]]; then - echo "${NOTE} NVIDIA GPU detected. Rebooting the system..." - systemctl reboot - else - systemctl reboot - fi + if [[ "$HYP" =~ ^[Yy]$ ]]; then + if [[ "$nvidia" == "Y" ]]; then + echo "${NOTE} NVIDIA GPU detected. Rebooting the system..." + systemctl reboot + else + systemctl reboot + fi + fi +else + # Print error message if neither package is installed + printf "\n${NOTE} Hyprland failed to install. Please check Install-Logs...\n\n" + exit 1 fi + From f873acae35a2a0181a312c78f8fbcbf74253d645 Mon Sep 17 00:00:00 2001 From: "Ja.KooLit" Date: Wed, 28 Aug 2024 18:36:11 +0900 Subject: [PATCH 2/2] Added final check if hyprland is installed and will give an error to user --- CHANGELOGS.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOGS.md b/CHANGELOGS.md index dd91b9b..774c68d 100644 --- a/CHANGELOGS.md +++ b/CHANGELOGS.md @@ -1,5 +1,8 @@ ## Changelogs +## 28 Aug 2024 +- Added final check if hyprland is installed and will give an error to user + ## 24 Aug 2024 - Created a newer and compatible Hyprland-Dots repo -