Skip to content

Commit cd23cd5

Browse files
mayuka-ccamilamacedo86
authored andcommitted
(cli/alpha/update) fix: correct --to-version pre-requisite check
1 parent cf5dbb3 commit cd23cd5

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)