zimoun pushed a commit to branch master
in repository guix.
commit f814d33cbd3bd6f4a6c330ed0e93a214b887f401
Author: Simon Tournier <[email protected]>
AuthorDate: Mon Oct 16 18:50:12 2023 +0200
scripts: container: Handle EPIPE errors when displaying help.
* 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 @@ Build and manipulate Linux containers.\n"))
(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"))