Fix component version message in cf import (fixes #90)

This commit is contained in:
comp500 2022-02-20 17:14:44 +00:00
parent d43984923e
commit 2dd0a1ae78

View File

@ -173,7 +173,7 @@ var importCmd = &cobra.Command{
if !ok { if !ok {
fmt.Println("Set " + core.ComponentToFriendlyName(component) + " version to " + version) fmt.Println("Set " + core.ComponentToFriendlyName(component) + " version to " + version)
} else if packVersion != version { } else if packVersion != version {
fmt.Println("Set " + core.ComponentToFriendlyName(component) + " version to " + version + " (previously " + version + ")") fmt.Println("Set " + core.ComponentToFriendlyName(component) + " version to " + version + " (previously " + packVersion + ")")
} }
pack.Versions[component] = version pack.Versions[component] = version
} }