aboutsummaryrefslogtreecommitdiffstats
path: root/upgrade.sh
diff options
context:
space:
mode:
authorDonald Williams <129223418+dwilliam62@users.noreply.github.com>2025-10-13 20:31:53 -0400
committerGitHub <noreply@github.com>2025-10-13 20:31:53 -0400
commite4be12e23fa8d6f8a73dde974ea6adf242885bc1 (patch)
treeb879abcf54989120a0931443bfb8203c885c2b20 /upgrade.sh
parent0e52d19b894e3cfd2c87cfbcc35ae087d48f5485 (diff)
parent9d26c191c1071a542e816d1bc2b0b3f96ebfa74d (diff)
Merge pull request #841 from JaKooLit/ddubs-hyprsunset
Merge ddubs-hyprsunset into main fixes for wallust, sddm and weather
Diffstat (limited to 'upgrade.sh')
-rwxr-xr-xupgrade.sh25
1 files changed, 25 insertions, 0 deletions
diff --git a/upgrade.sh b/upgrade.sh
index 034d7a2c..a47bd48b 100755
--- a/upgrade.sh
+++ b/upgrade.sh
@@ -27,6 +27,31 @@ echo -e "\e[35m
\e[0m"
printf "\n%.0s" {1..1}
+# On Ubuntu/Debian, warn about required Hyprland version and prompt to continue
+if grep -iqE '^(ID_LIKE|ID)=.*(ubuntu|debian)' /etc/os-release >/dev/null 2>&1; then
+ echo "${WARNING} These Dotfiles are only supported on Hyprland 0.51.1 or greater. Do not install on older revisions.${RESET}"
+ while true; do
+ echo -n "${CAT} Do you want to continue anyway? (y/N): ${RESET}"
+ read _continue
+ _continue=$(echo "${_continue}" | tr '[:upper:]' '[:lower:]')
+ case "${_continue}" in
+ y|yes)
+ echo "${NOTE} Proceeding on Ubuntu/Debian by user confirmation."
+ break
+ ;;
+ n|no|"")
+ printf "\n%.0s" {1..1}
+ echo "${INFO} Aborting per user choice. No changes made."
+ printf "\n%.0s" {1..1}
+ exit 1
+ ;;
+ *)
+ echo "${WARN} Please answer 'y' or 'n'."
+ ;;
+ esac
+ done
+fi
+
echo "${WARNING}A T T E N T I O N !${RESET}"
echo "${SKY_BLUE}This script is meant to manually upgrade your KooL Hyprland Dots${RESET}"
echo "${YELLOW}NOTE that you should edit this script and assign an Directory or Files exclusion${RESET}"
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage