internal/hasher.go | 3 +++ diff --git a/internal/hasher.go b/internal/hasher.go index f79bbf4ffd96e7769020f53d74d218b4ba3319b9c3f6cd88448a4e859f3028cf..ca9c7857911eaed808c61a8f3d186a3942bd1ab1482893cf69345ab172071a12 100644 --- a/internal/hasher.go +++ b/internal/hasher.go @@ -33,6 +33,9 @@ func NewHasher(hashes string) (*Hasher, error) { h := Hasher{} for hc := range strings.SplitSeq(hashes, ",") { + if hc == "" { + continue + } cols := strings.SplitN(hc, ":", 2) name, cmdline := cols[0], cols[1] if cmdline == BuiltinCmd {