summaryrefslogtreecommitdiff
path: root/scripts/dev/setup.sh
blob: 5c7973eee32eda3bb013d22b556cc2e40a607eb1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# Change to the directory where the script is located
cd "$(dirname "$0")/../../" || exit 1

# Setup documents repo
if [ -d "docs/Documents/.git" ]; then
    cd docs/Documents
    git fetch origin main
    git reset --hard origin/main
    cd -
else
    git clone https://github.com/JustEnoughVCS/Documents.git docs/Documents
fi