mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 06:30:42 +00:00
fix(update): exit post-core resume without result path
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user