diff --git a/cli/app/version.go b/cli/app/version.go index bdd254d5..b21928c6 100644 --- a/cli/app/version.go +++ b/cli/app/version.go @@ -22,8 +22,8 @@ func getImagePath(image string) (string, error) { return "", err } path := reference.Path(img) - if strings.Contains(image, "library") { - image = strings.Split(image, "/")[1] + if strings.Contains(path, "library") { + path = strings.Split(path, "/")[1] } return path, nil }