two blossom tweaks.

This commit is contained in:
fiatjaf
2026-07-02 00:48:43 -03:00
parent 6087c71072
commit 4ea0edc52b
+6 -2
View File
@@ -238,6 +238,10 @@ if any of the files are not found the command will fail, otherwise it will succe
hasError := false
for _, hash := range c.Args().Slice() {
if len(hash) > 32 {
hash = hash[0:32]
}
err := client.Check(ctx, hash)
if err != nil {
hasError = true
@@ -281,7 +285,7 @@ if any of the files are not found the command will fail, otherwise it will succe
return err
}
out, _ := json.Marshal(bd)
stdout(out)
stdout(string(out))
return nil
}
@@ -300,7 +304,7 @@ if any of the files are not found the command will fail, otherwise it will succe
continue
}
out, _ := json.Marshal(bd)
stdout(out)
stdout(string(out))
}
exitIfLineProcessingError(ctx)