#!/bin/sh install_hyprland() ( set -eu umask 077 archive='hyprland-fc10f459d62046095b93152a4cc8d84a3ee603a93e23c846801cf9ec2230e917.tar.gz' work=$(mktemp -d) trap 'rm -rf -- "$work"' EXIT trap 'exit 1' HUP INT TERM curl --fail --silent --show-error --retry 3 --proto '=https' \ -o "$work/$archive" 'https://hypr.ericvogt.com/'"$archive" printf '%s %s\n' 'fc10f459d62046095b93152a4cc8d84a3ee603a93e23c846801cf9ec2230e917' "$work/$archive" | sha256sum --check --status tar --extract --gzip --no-same-owner --file "$work/$archive" --directory "$work" if [ "${1:-}" = --check ] && [ "$#" -eq 1 ]; then bash -n "$work/scripts/migrate.sh" bash -n "$work/scripts/kwallet.sh" printf '%s\n' 'Hyprland release downloaded and verified.' exit fi bash "$work/scripts/migrate.sh" "$@" ) install_hyprland "$@"