X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=cmd%2Fmeta4ra%2Fcheck.go;h=c53ccb9f0e7c7768ada5c1ff2d8f92eeb49a39da;hb=refs%2Ftags%2Fv0.7.0;hp=c030f8b8417ec376d2008ab8aed377efa43ac15e;hpb=be69a4fc0c240c2772a0f0bf0955b39783e4c48a;p=meta4ra.git diff --git a/cmd/meta4ra/check.go b/cmd/meta4ra/check.go index c030f8b..c53ccb9 100644 --- a/cmd/meta4ra/check.go +++ b/cmd/meta4ra/check.go @@ -50,6 +50,15 @@ and -extract-sig, then you can just specify an empty ("") FILE. } flag.Parse() + if *showVersion { + fmt.Println(meta4ra.Version()) + return + } + if *showWarranty { + fmt.Println(meta4ra.Warranty) + return + } + data, err := os.ReadFile(*metaPath) if err != nil { log.Fatalln(err) @@ -216,8 +225,10 @@ and -extract-sig, then you can just specify an empty ("") FILE. } } if len(toCheck) != 0 { - fmt.Println("not all FILEs met") - bad = true + if _, ok := toCheck["."]; !(len(toCheck) == 1 && ok) { + fmt.Println("not all FILEs met") + bad = true + } } if bad { os.Exit(1)