set -e ascii_art=' ▄██████▄ ▄▄▄▄███▄▄▄▄ ▄████████ ▄████████ ▄████████ ▄█ █▄ ▄██ ▄ ███ ███ ▄██▀▀▀███▀▀▀██▄ ███ ███ ███ ███ ███ ███ ███ ███ ███ ██▄ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███ █▀ ███ ███ ███▄▄▄███ ███ ███ ███ ███ ███ ███ ███ ▄███▄▄▄▄██▀ ███ ▄███▄▄▄▄███▄▄ ▀▀▀▀▀▀███ ███ ███ ███ ███ ███ ▀███████████ ▀▀███▀▀▀▀▀ ███ ▀▀███▀▀▀▀███▀ ▄██ ███ ███ ███ ███ ███ ███ ███ ███ ▀███████████ ███ █▄ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███ ▀██████▀ ▀█ ███ █▀ ███ █▀ ███ ███ ████████▀ ███ █▀ ▀█████▀ ███ ███ ' echo -e "$ascii_art" echo "=> Omarchy is for fresh Arch installations only!" echo -e "\nBegin installation (or abort with ctrl+c)..." sudo pacman -Sy --noconfirm git >/dev/null echo "Cloning Omarchy..." rm -rf ~/.local/share/omarchy/ git clone https://github.com/basecamp/omarchy.git ~/.local/share/omarchy >/dev/null if [[ $OMARCHY_REF != "master" ]]; then cd ~/.local/share/omarchy git fetch origin "${OMARCHY_REF:-stable}" && git checkout "${OMARCHY_REF:-stable}" cd - fi echo "Installation starting..." source ~/.local/share/omarchy/install.sh