From 951e617a659fecf1daf8588b9a6a8fd986fe7365 Mon Sep 17 00:00:00 2001 From: Jan Vollmer Date: Fri, 5 Jan 2024 18:24:55 +0100 Subject: [PATCH] sign-all don't stop signing if one file does not exist anymore --- cmd/sbctl/sign-all.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/sbctl/sign-all.go b/cmd/sbctl/sign-all.go index fd9a671..c97ddae 100644 --- a/cmd/sbctl/sign-all.go +++ b/cmd/sbctl/sign-all.go @@ -38,7 +38,8 @@ func SignAll() error { if errors.Is(err, sbctl.ErrAlreadySigned) { logging.Print("File has already been signed %s\n", entry.OutputFile) } else if err != nil { - return fmt.Errorf("failed signing %s: %w", entry.File, err) + logging.Error(fmt.Errorf("failed signing %s: %w", entry.File, err)) + continue } else { logging.Ok("Signed %s", entry.OutputFile) }