mirror of
https://github.com/anomalyco/opencode.git
synced 2026-09-02 04:24:33 +00:00
fix(cli): avoid duplicate managed update checks
This commit is contained in:
parent
9553187ba6
commit
6f3d613af3
1 changed files with 4 additions and 2 deletions
|
|
@ -46,8 +46,10 @@ export default Runtime.handler(Commands, (input) =>
|
|||
Effect.promise(() => preflight.fail("OpenCode update could not start the new background service")),
|
||||
),
|
||||
)
|
||||
const updater = yield* Updater.Service
|
||||
yield* updater.check().pipe(Effect.forkScoped)
|
||||
if (!server.service) {
|
||||
const updater = yield* Updater.Service
|
||||
yield* updater.check().pipe(Effect.forkScoped)
|
||||
}
|
||||
preflight.loading()
|
||||
const config = yield* Config.Service
|
||||
const npm = yield* Npm.Service
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue