Skip to content

Commit 00d0f14

Browse files
committed
(cli/alpha/update) fix: correct --to-version pre-requisite check
1 parent e522ae5 commit 00d0f14

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)