mirror of
https://github.com/JaKooLit/Debian-Hyprland.git
synced 2025-12-21 10:20:12 +01:00
updated install.sh to check if Hyprland is installed and will give an error message
This commit is contained in:
parent
7faa5256a3
commit
35ca471c92
36
install.sh
36
install.sh
@ -224,20 +224,28 @@ fi
|
|||||||
|
|
||||||
clear
|
clear
|
||||||
|
|
||||||
printf "\n${OK} Yey! Installation Completed.\n"
|
# Check if either hyprland or hyprland-git is installed
|
||||||
printf "\n"
|
if dpkg -l | grep -qw hyprland || dpkg -l | grep -qw hyprland-git; then
|
||||||
sleep 2
|
printf "\n${OK} Yey! Installation Completed.\n"
|
||||||
printf "\n${NOTE} You can start Hyprland by typing Hyprland (IF SDDM is not installed) (note the capital H!).\n"
|
sleep 2
|
||||||
printf "\n"
|
printf "\n${NOTE} You can start Hyprland by typing Hyprland (IF SDDM is not installed) (note the capital H!).\n"
|
||||||
printf "\n${NOTE} It is highly recommended to reboot your system.\n\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 [[ "$HYP" =~ ^[Yy]$ ]]; then
|
||||||
if [[ "$nvidia" == "Y" ]]; then
|
if [[ "$nvidia" == "Y" ]]; then
|
||||||
echo "${NOTE} NVIDIA GPU detected. Rebooting the system..."
|
echo "${NOTE} NVIDIA GPU detected. Rebooting the system..."
|
||||||
systemctl reboot
|
systemctl reboot
|
||||||
else
|
else
|
||||||
systemctl reboot
|
systemctl reboot
|
||||||
fi
|
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
|
fi
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user