From ea37c7ccb57e085955a664aa9f59107152891618 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Fri, 4 Jul 2025 15:38:34 -0700 Subject: [PATCH] Use custom branch if $OMARCHY_REF has been specified --- boot.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/boot.sh b/boot.sh index fb23603..9c947c4 100644 --- a/boot.sh +++ b/boot.sh @@ -16,5 +16,13 @@ echo -e "\nCloning Omarchy..." rm -rf ~/.local/share/omarchy/ git clone https://github.com/basecamp/omarchy.git ~/.local/share/omarchy >/dev/null +# Use custom branch if instructed +if [[ -n "$OMARCHY_REF" ]]; then + echo -e "\eUsing branch: $OMARCHY_REF" + 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