Use custom branch if $OMARCHY_REF has been specified

This commit is contained in:
David Heinemeier Hansson
2025-07-04 15:38:34 -07:00
parent 83210c6566
commit ea37c7ccb5

View File

@ -16,5 +16,13 @@ echo -e "\nCloning Omarchy..."
rm -rf ~/.local/share/omarchy/ rm -rf ~/.local/share/omarchy/
git clone https://github.com/basecamp/omarchy.git ~/.local/share/omarchy >/dev/null 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..." echo -e "\nInstallation starting..."
source ~/.local/share/omarchy/install.sh source ~/.local/share/omarchy/install.sh