Ensure mirror and pkgs channels are always kept in sync as stable or edge

This commit is contained in:
David Heinemeier Hansson
2026-01-07 19:45:00 +01:00
parent 3489bf5ceb
commit 2855712158
6 changed files with 51 additions and 9 deletions

View File

@@ -27,7 +27,7 @@ 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
export OMARCHY_REF="${OMARCHY_REF:-master}"
OMARCHY_REF="${OMARCHY_REF:-master}"
if [[ $OMARCHY_REF != "master" ]]; then
echo -e "\e[32mUsing branch: $OMARCHY_REF\e[0m"
cd ~/.local/share/omarchy
@@ -35,5 +35,12 @@ if [[ $OMARCHY_REF != "master" ]]; then
cd -
fi
# Set edge mirror for dev installs
if [[ $OMARCHY_REF == "dev" ]]; then
export OMARCHY_MIRROR=edge
else
export OMARCHY_MIRROR=stable
fi
echo -e "\nInstallation starting..."
source ~/.local/share/omarchy/install.sh