mirror of
https://github.com/LukeHagar/omarchy.git
synced 2025-12-06 12:37:46 +00:00
The branch message had an incomplete ANSI escape sequence that was cutting off the first character and breaking the display formatting. Before: \eUsing branch: master (displayed as 'sing branch: master') After: \e[32mUsing branch: master\e[0m (displayed as 'Using branch: master' in green) This fix ensures the complete message is displayed with proper green coloring.
40 lines
2.4 KiB
Bash
Executable File
40 lines
2.4 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
# Set install mode to online since boot.sh is used for curl installations
|
|
export OMARCHY_ONLINE_INSTALL=true
|
|
|
|
ansi_art=' ▄▄▄
|
|
▄█████▄ ▄███████████▄ ▄███████ ▄███████ ▄███████ ▄█ █▄ ▄█ █▄
|
|
███ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███
|
|
███ ███ ███ ███ ███ ███ ███ ███ ███ ███ █▀ ███ ███ ███ ███
|
|
███ ███ ███ ███ ███ ▄███▄▄▄███ ▄███▄▄▄██▀ ███ ▄███▄▄▄███▄ ███▄▄▄███
|
|
███ ███ ███ ███ ███ ▀███▀▀▀███ ▀███▀▀▀▀ ███ ▀▀███▀▀▀███ ▀▀▀▀▀▀███
|
|
███ ███ ███ ███ ███ ███ ███ ██████████ ███ █▄ ███ ███ ▄██ ███
|
|
███ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███
|
|
▀█████▀ ▀█ ███ █▀ ███ █▀ ███ ███ ███████▀ ███ █▀ ▀█████▀
|
|
███ █▀ '
|
|
|
|
clear
|
|
echo -e "\n$ansi_art\n"
|
|
|
|
sudo pacman -Syu --noconfirm --needed git
|
|
|
|
# Use custom repo if specified, otherwise default to basecamp/omarchy
|
|
OMARCHY_REPO="${OMARCHY_REPO:-basecamp/omarchy}"
|
|
|
|
echo -e "\nCloning Omarchy from: https://github.com/${OMARCHY_REPO}.git"
|
|
rm -rf ~/.local/share/omarchy/
|
|
git clone "https://github.com/${OMARCHY_REPO}.git" ~/.local/share/omarchy >/dev/null
|
|
|
|
# Use custom branch if instructed, otherwise default to master
|
|
OMARCHY_REF="${OMARCHY_REF:-master}"
|
|
if [[ $OMARCHY_REF != "master" ]]; then
|
|
echo -e "\e[32mUsing branch: $OMARCHY_REF\e[0m"
|
|
cd ~/.local/share/omarchy
|
|
git fetch origin "${OMARCHY_REF}" && git checkout "${OMARCHY_REF}"
|
|
cd -
|
|
fi
|
|
|
|
echo -e "\nInstallation starting..."
|
|
source ~/.local/share/omarchy/install.sh
|