diff options
| author | Don Williams <don.e.williams@gmail.com> | 2025-10-13 20:05:38 -0400 |
|---|---|---|
| committer | Don Williams <don.e.williams@gmail.com> | 2025-10-13 20:05:38 -0400 |
| commit | 87c0db43a6fd53c4174158e0753941b8f5b6ee38 (patch) | |
| tree | 01a126ba756a0967303b81285fa1619585f2d47e /copy.sh | |
| parent | 2b6ae7120648aeaa612df088effa53ec3a75b691 (diff) | |
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
Diffstat (limited to 'copy.sh')
| -rwxr-xr-x | copy.sh | 37 |
1 files changed, 23 insertions, 14 deletions
@@ -35,21 +35,30 @@ print_color() { printf "%b%s%b\n" "$1" "$2" "$RESET" } -# Check /etc/os-release to see if this is an Ubuntu based distro -if grep -iq '^\(ID_LIKE\|ID\)=.*ubuntu' /etc/os-release >/dev/null 2>&1; then +# Check /etc/os-release for Ubuntu or Debian and warn about Hyprland version requirement +if grep -iqE '^(ID_LIKE|ID)=.*(ubuntu|debian)' /etc/os-release >/dev/null 2>&1; then printf "\n%.0s" {1..1} - print_color $WARNING " - █▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█ - KOOL DOTS version INCOMPATIBLE - █▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄█ - - Ubuntu detected. Refer to Hyprland-Dots README - For instruction on how to update your KooL Hyprland Dots - - exiting .... - " - printf "\n%.0s" {1..3} - exit 1 + print_color $WARNING "\nThese Dotfiles are only supported on Hyprland 0.51.1 or greater. Do not install on older revisions.\n" + while true; do + echo -n "${CAT} Do you want to continue anyway? (y/N): " + 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 printf "\n%.0s" {1..1} |
