From 8c50e01add0f02ba62a2bd20afc8989c5d4a006f Mon Sep 17 00:00:00 2001 From: Justin Barnett Date: Tue, 8 Apr 2025 15:23:46 -0400 Subject: [PATCH] update update path --- UnityMcpBridge/Editor/Helpers/ServerInstaller.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/UnityMcpBridge/Editor/Helpers/ServerInstaller.cs b/UnityMcpBridge/Editor/Helpers/ServerInstaller.cs index 129929d..a694391 100644 --- a/UnityMcpBridge/Editor/Helpers/ServerInstaller.cs +++ b/UnityMcpBridge/Editor/Helpers/ServerInstaller.cs @@ -46,6 +46,7 @@ namespace UnityMcpBridge.Editor.Helpers if (IsNewerVersion(latestVersion, installedVersion)) { + Debug.Log($"is newer version"); UpdateServer(saveLocation); } else { } @@ -163,9 +164,8 @@ namespace UnityMcpBridge.Editor.Helpers /// private static void UpdateServer(string location) { - // Pull latest changes in the src directory - string serverDir = Path.Combine(location, ServerFolder, "src"); - RunCommand("git", $"pull origin {BranchName}", workingDirectory: serverDir); + Debug.Log("updating server"); + RunCommand("git", $"pull origin {BranchName}", workingDirectory: location); } ///