#!/bin/bash

# archypr:summary=Reinstall the Omarchy source directory from git

set -e

# Reinstall the Omarchy configuration directory from the git source.

git clone --depth=1 --branch master "https://github.com/basecamp/omarchy.git" ~/.local/share/archypr-new >/dev/null
mv $ARCHYPR_PATH ~/.local/share/archypr-old
mv ~/.local/share/archypr-new $ARCHYPR_PATH
