Skip to content

Commit

Permalink
Force v prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
kke committed Mar 15, 2022
1 parent da6c5d5 commit 9867e8c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/k0s_sort/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"fmt"
"os"
"sort"
"strings"

"github.com/k0sproject/version"
)
Expand All @@ -30,6 +31,6 @@ func main() {
sort.Sort(versions)

for _, v := range versions {
fmt.Println(v)
fmt.Println(fmt.Sprintf("v%s", strings.TrimPrefix(v.String(), "v")))
}
}

0 comments on commit 9867e8c

Please sign in to comment.