From c3af4b9469a7d3ce3f8f4c8ef1f24967479fdd2f Mon Sep 17 00:00:00 2001 From: Richard Macklin <1863540+rmacklin@users.noreply.github.com> Date: Sun, 24 Aug 2025 01:40:47 -0700 Subject: [PATCH] Default `OMARCHY_REF` to `master` in boot.sh (#1030) This will allow us to change GitHub's default branch to `dev`, so that PRs will target the correct branch by default, but new installations will still default to using the stable `master` branch. --- boot.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/boot.sh b/boot.sh index 9005487a..17ad668f 100755 --- a/boot.sh +++ b/boot.sh @@ -23,8 +23,9 @@ 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 -if [[ -n "$OMARCHY_REF" ]]; then +# Use custom branch if instructed, otherwise default to master +OMARCHY_REF="${OMARCHY_REF:-master}" +if [[ $OMARCHY_REF != "master" ]]; then echo -e "\eUsing branch: $OMARCHY_REF" cd ~/.local/share/omarchy git fetch origin "${OMARCHY_REF}" && git checkout "${OMARCHY_REF}"