Skip to content

Commit 0e66e83

Browse files
authored
Merge pull request #4937 from mayuka-c/issue-4925-part2
🐛 (CLI) fix alpha update command to version pre-require check
2 parents e522ae5 + 00d0f14 commit 0e66e83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/cli/alpha/internal/update/prepare.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ func (opts *Update) defineFromVersion(config store.Store) (string, error) {
7575

7676
func (opts *Update) defineToVersion() string {
7777
if len(opts.ToVersion) != 0 {
78-
if !strings.HasPrefix(opts.FromVersion, "v") {
78+
if !strings.HasPrefix(opts.ToVersion, "v") {
7979
return "v" + opts.ToVersion
8080
}
8181
return opts.ToVersion

0 commit comments

Comments
 (0)