summaryrefslogtreecommitdiff
path: root/guix/scripts
diff options
context:
space:
mode:
authorSimon Tournier <zimon.toutoune@gmail.com>2023-10-16 18:49:29 +0200
committerSimon Tournier <zimon.toutoune@gmail.com>2023-10-17 14:51:57 +0200
commit330540b638fd2038ecd24dfcd71da3070077363c (patch)
tree17e077534299b34ba7546064519165363042478a /guix/scripts
parent8ed377978eac88b431908b4806591e9339331262 (diff)
scripts: gc: Handle EPIPE errors when displaying help.
* guix/scripts/gc.scm (%options): Handle EPIPE errors when displaying help.
Diffstat (limited to 'guix/scripts')
-rw-r--r--guix/scripts/gc.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/guix/scripts/gc.scm b/guix/scripts/gc.scm
index 6068f5fe3f..58af827617 100644
--- a/guix/scripts/gc.scm
+++ b/guix/scripts/gc.scm
@@ -132,7 +132,7 @@ current one."
;; Specification of the command-line options.
(list (option '(#\h "help") #f #f
(lambda args
- (show-help)
+ (leave-on-EPIPE (show-help))
(exit 0)))
(option '(#\V "version") #f #f
(lambda args