aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Tournier <zimon.toutoune@gmail.com>2023-10-16 18:08:07 +0200
committerSimon Tournier <zimon.toutoune@gmail.com>2023-10-17 14:51:58 +0200
commit7d36333145ca88efa0812760300afa59345ceda5 (patch)
tree1da06667615d113a33b3b238890e24bfa84c1238
parentba8a43f2202c31e6f8923e566a0b24877df44c57 (diff)
downloadguix-7d36333145ca88efa0812760300afa59345ceda5.tar.gz
guix-7d36333145ca88efa0812760300afa59345ceda5.zip
scripts: hash: Handle EPIPE errors when displaying help.
* guix/scripts/hash.scm (%options): Handle EPIPE errors when displaying help.
-rw-r--r--guix/scripts/hash.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/guix/scripts/hash.scm b/guix/scripts/hash.scm
index 6dc67a2416..7197d3965c 100644
--- a/guix/scripts/hash.scm
+++ b/guix/scripts/hash.scm
@@ -153,7 +153,7 @@ use '--serializer=nar' instead~%")))
(alist-delete 'serializer result))))
(option '(#\h "help") #f #f
(lambda args
- (show-help)
+ (leave-on-EPIPE (show-help))
(exit 0)))
(option '(#\V "version") #f #f
(lambda args