chore: do 'git stash' before hard reset
All checks were successful
Build / build (18) (push) Successful in 1m12s
Build Docker image / docker (push) Successful in 32s
Build / build (22) (push) Successful in 41s
Build / build (20) (push) Successful in 1m11s

Just in case the user made local changes and then runs the bat we don't wanna have it be irrecoverably lost.
This commit is contained in:
Sainan 2025-03-23 16:40:48 +01:00
parent aa12708738
commit c3d7ae33c2

View File

@ -3,6 +3,7 @@
echo Updating SpaceNinjaServer... echo Updating SpaceNinjaServer...
git config remote.origin.url https://openwf.io/SpaceNinjaServer.git git config remote.origin.url https://openwf.io/SpaceNinjaServer.git
git fetch --prune git fetch --prune
git stash
git reset --hard origin/main git reset --hard origin/main
if exist static\data\0\ ( if exist static\data\0\ (