From b254d68dcca7262809b611a7a8840493cf03c6a6 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Wed, 18 Feb 2026 17:52:59 +0300 Subject: [PATCH] Fix workability with empty -hashes --- internal/hasher.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/hasher.go b/internal/hasher.go index 8de588f..db2b912 100644 --- a/internal/hasher.go +++ b/internal/hasher.go @@ -33,6 +33,9 @@ type Hasher struct { 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 { -- 2.52.0