Merge branch 'main' into main-v5

pull/718/head
iwilltry42 3 years ago
commit 737ae9570c
No known key found for this signature in database
GPG Key ID: 7BA57AD1CFF16110
  1. 3
      version/version.go

@ -23,6 +23,7 @@ package version
import ( import (
"os" "os"
"strings"
"github.com/heroku/docker-registry-client/registry" "github.com/heroku/docker-registry-client/registry"
l "github.com/rancher/k3d/v4/pkg/logger" l "github.com/rancher/k3d/v4/pkg/logger"
@ -57,7 +58,7 @@ func GetHelperImageVersion() string {
if len(Version) == 0 { if len(Version) == 0 {
return "latest" return "latest"
} }
return Version return strings.TrimPrefix(Version, "v")
} }
// GetK3sVersion returns the version string for K3s // GetK3sVersion returns the version string for K3s

Loading…
Cancel
Save