Skip to content

Commit 510fe8a

Browse files
authored
handle the optional v in upgrade command when using curl (anomalyco#1500)
1 parent 04a1ab3 commit 510fe8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/opencode/src/cli/cmd/upgrade.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export const UpgradeCommand = {
3232
return
3333
}
3434
prompts.log.info("Using method: " + method)
35-
const target = args.target ?? (await Installation.latest())
35+
const target = args.target ? args.target.replace(/^v/, "") : await Installation.latest()
3636

3737
if (Installation.VERSION === target) {
3838
prompts.log.warn(`opencode upgrade skipped: ${target} is already installed`)

0 commit comments

Comments
 (0)