We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
v
1 parent 04a1ab3 commit 510fe8aCopy full SHA for 510fe8a
packages/opencode/src/cli/cmd/upgrade.ts
@@ -32,7 +32,7 @@ export const UpgradeCommand = {
32
return
33
}
34
prompts.log.info("Using method: " + method)
35
- const target = args.target ?? (await Installation.latest())
+ const target = args.target ? args.target.replace(/^v/, "") : await Installation.latest()
36
37
if (Installation.VERSION === target) {
38
prompts.log.warn(`opencode upgrade skipped: ${target} is already installed`)
0 commit comments