diff --git a/cli/utils.go b/cli/utils.go index 7252d20e3c..6d87f46287 100644 --- a/cli/utils.go +++ b/cli/utils.go @@ -71,7 +71,7 @@ func getDistroDetails() (name, version string, err error) { } } - if name != "" && version != "" { + if name != "" || version != "" { return name, version, nil } }