diff --git a/main.go b/main.go index 5c3561a6..7f3109b0 100644 --- a/main.go +++ b/main.go @@ -194,14 +194,20 @@ func makeVersionString() string { if version != "" { v = append(v, name+" : "+version) + } else { + v = append(v, name+" : "+unknown) } if commit != "" { v = append(v, " commit : "+commit) + } else { + v = append(v, " commit : "+unknown) } if specs.Version != "" { v = append(v, " OCI specs: "+specs.Version) + } else { + v = append(v, " OCI specs: "+unknown) } return strings.Join(v, "\n")