Skip to content

Commit

Permalink
🐛 Fixup version detection
Browse files Browse the repository at this point in the history
  • Loading branch information
mudler authored May 18, 2022
1 parent e340cfa commit 7968ccb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cli/utils/system.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ func PowerOFF() {
func Version() string {
release, _ := godotenv.Read("/etc/os-release")
v := release["VERSION"]
v = strings.ReplaceAll(v, "+k3s1-c3OS", "-")
return strings.ReplaceAll(v, "+k3s-c3OS", "-")
}

Expand Down

0 comments on commit 7968ccb

Please sign in to comment.