zimoun pushed a commit to branch master
in repository guix.
commit 25331ae62b0c963b8f5bf7b993ccd8c7dcaf2d3f
Author: Simon Tournier <[email protected]>
AuthorDate: Mon Oct 16 18:50:48 2023 +0200
scripts: download: Handle EPIPE errors when displaying help.
* guix/scripts/download.scm (%options): Handle EPIPE errors when displaying
help.
---
guix/scripts/download.scm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/guix/scripts/download.scm b/guix/scripts/download.scm
index 0ab5c8c39c..0441d3fead 100644
--- a/guix/scripts/download.scm
+++ b/guix/scripts/download.scm
@@ -143,7 +143,7 @@ and 'base16' ('hex' and 'hexadecimal' can be used as
well).\n"))
(option '(#\h "help") #f #f
(lambda args
- (show-help)
+ (leave-on-EPIPE (show-help))
(exit 0)))
(option '(#\V "version") #f #f
(lambda args