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}"