Subject: [PATCH v2 05/39] scripts: container: Handle EPIPE errors when displaying help.

From: Simon Tournier <[email-masked]>
Date: Mon, 16 Oct 2023 19:29:23 +0200

* guix/scripts/container.scm (%options): Handle EPIPE errors when displaying
help.
---
 guix/scripts/container.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/guix/scripts/container.scm b/guix/scripts/container.scm
index 2369437043..70637bca29 100644
--- a/guix/scripts/container.scm
+++ b/guix/scripts/container.scm
@@ -57,7 +57,7 @@ (define-command (guix-container . args)
        (format (current-error-port)
                (G_ "guix container: missing action~%")))
       ((or ("-h") ("--help"))
-       (show-help)
+       (leave-on-EPIPE (show-help))
        (exit 0))
       ((or ("-V") ("--version"))
        (show-version-and-exit "guix container"))
-- 
2.38.1