diff --git a/cmd/os_release.go b/cmd/os_release.go index aa5e9fb1ff5..c0f5de2c3f3 100644 --- a/cmd/os_release.go +++ b/cmd/os_release.go @@ -75,6 +75,9 @@ func parseOSRelease(r io.Reader) (map[string]string, error) { // titilize returns s, titilized. func titilize(s string) string { + if s == "" { + return s + } runes := []rune(s) return string(append([]rune{unicode.ToTitle(runes[0])}, runes[1:]...)) }