]> Sergey Matveev's repositories - meta4ra.git/commitdiff
Fix filename processing bug
authorSergey Matveev <stargrave@stargrave.org>
Sat, 21 Feb 2026 08:39:33 +0000 (11:39 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Sat, 21 Feb 2026 08:39:33 +0000 (11:39 +0300)
cmd/check.go
internal/common.go

index 8e95b9cefb464fad35be840d6f06fbb94c3dd3ff..7f83a6de3ed9529505415fa281a16d12e10ad8c0 100644 (file)
@@ -85,7 +85,7 @@ format, then you can just specify an empty ("") FILE.
        for _, f := range meta.Files {
                fullPath := toCheck[f.Name]
                delete(toCheck, f.Name)
-               if !(len(toCheck) == 0 || fullPath != "") {
+               if !(flag.NArg() == 1 || fullPath != "") {
                        continue
                }
                if fullPath == "" {
index afe18e1ab5efeed2eada45073c16bfe6df5c5d75..8c47706004174f08414b84ebc4f69f8b02a4142f 100644 (file)
@@ -21,7 +21,7 @@ import (
 )
 
 const (
-       Generator       = "meta4ra/1.3.0"
+       Generator       = "meta4ra/1.4.0"
        SigMediaTypePGP = "application/pgp-signature"
        SigMediaTypeSSH = "application/ssh-signature"
        BufLen          = 1 << 20