fix(update): exit post-core resume without result path

This commit is contained in:
Vincent Koc
2026-05-04 14:03:16 -07:00
parent 02ac7dc5a6
commit fdaa5a0c3d
2 changed files with 2 additions and 4 deletions

View File

@@ -777,6 +777,7 @@ describe("update-cli", () => {
["npm", "i", "-g", expect.any(String)],
expect.anything(),
);
expect(defaultRuntime.exit).toHaveBeenCalledWith(0);
expect(syncPluginsForUpdateChannel).toHaveBeenCalledTimes(1);
expect(updateNpmInstalledPlugins).toHaveBeenCalledTimes(1);
expect(spawn).not.toHaveBeenCalled();

View File

@@ -1831,10 +1831,7 @@ export async function updateCommand(opts: UpdateCommandOptions): Promise<void> {
defaultRuntime.exit(1);
return;
}
if (process.env[POST_CORE_UPDATE_RESULT_PATH_ENV]) {
defaultRuntime.exit(0);
return;
}
defaultRuntime.exit(0);
return;
}