mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-22 11:25:15 +00:00
handle the optional v in upgrade command when using curl (#1500)
This commit is contained in:
parent
04a1ab3893
commit
510fe8a72a
1 changed files with 1 additions and 1 deletions
|
|
@ -32,7 +32,7 @@ export const UpgradeCommand = {
|
|||
return
|
||||
}
|
||||
prompts.log.info("Using method: " + method)
|
||||
const target = args.target ?? (await Installation.latest())
|
||||
const target = args.target ? args.target.replace(/^v/, "") : await Installation.latest()
|
||||
|
||||
if (Installation.VERSION === target) {
|
||||
prompts.log.warn(`opencode upgrade skipped: ${target} is already installed`)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue