fix(setup): git reset mission repo to break infinite loop caused by syncing patches
This commit is contained in:
@@ -61,6 +61,8 @@ if [ ! -d "$HOME_DIR/missions" ]; then
|
||||
else
|
||||
print_info "Missions folder already exists, updating..."
|
||||
cd "$HOME_DIR/missions"
|
||||
# Reset local changes (our patches) to ensure we get fresh real scripts for the sync
|
||||
sudo -u "$USER_NAME" git reset --hard HEAD
|
||||
sudo -u "$USER_NAME" git pull || true
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user