Files
omarchy/boot.sh
David Heinemeier Hansson abe39314d9 No need to bail early
2025-06-02 10:31:27 +02:00

28 lines
2.2 KiB
Bash

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