From 87c0db43a6fd53c4174158e0753941b8f5b6ee38 Mon Sep 17 00:00:00 2001 From: Don Williams Date: Mon, 13 Oct 2025 20:05:38 -0400 Subject: Upd scripts to be compatible with deb/ubuntu On branch ddubs-hyprsunset Your branch is up to date with 'origin/ddubs-hyprsunset'. Changes to be committed: modified: CHANGELOG.md modified: README.md modified: copy.sh modified: release.sh modified: upgrade.sh --- upgrade.sh | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'upgrade.sh') 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}" -- cgit v1.2.3