Skip to content

Commit 8c50e01

Browse files
update update path
1 parent a3f1926 commit 8c50e01

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

UnityMcpBridge/Editor/Helpers/ServerInstaller.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ public static void EnsureServerInstalled()
4646

4747
if (IsNewerVersion(latestVersion, installedVersion))
4848
{
49+
Debug.Log($"is newer version");
4950
UpdateServer(saveLocation);
5051
}
5152
else { }
@@ -163,9 +164,8 @@ private static string GetLatestVersion()
163164
/// </summary>
164165
private static void UpdateServer(string location)
165166
{
166-
// Pull latest changes in the src directory
167-
string serverDir = Path.Combine(location, ServerFolder, "src");
168-
RunCommand("git", $"pull origin {BranchName}", workingDirectory: serverDir);
167+
Debug.Log("updating server");
168+
RunCommand("git", $"pull origin {BranchName}", workingDirectory: location);
169169
}
170170

171171
/// <summary>

0 commit comments

Comments
 (0)