summaryrefslogtreecommitdiff
path: root/setup.sh
diff options
context:
space:
mode:
Diffstat (limited to 'setup.sh')
-rwxr-xr-xsetup.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/setup.sh b/setup.sh
index ac4ecb8..fb2a6d6 100755
--- a/setup.sh
+++ b/setup.sh
@@ -1,6 +1,9 @@
# Setup documents repo
if [ -d "docs/Documents/.git" ]; then
- cd docs/Documents && git pull origin main && cd -
+ 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