summaryrefslogtreecommitdiff
path: root/guix/scripts/build.scm
diff options
context:
space:
mode:
authorSimon Tournier <zimon.toutoune@gmail.com>2023-10-16 18:36:14 +0200
committerSimon Tournier <zimon.toutoune@gmail.com>2023-10-17 14:51:54 +0200
commitde63efc802f1cb4d7b41bb5a88dba245ba351236 (patch)
tree0355653fac14d348b8868fe5f29f590af615893b /guix/scripts/build.scm
parentb53742def399969042f477181cae2637ef3a3842 (diff)
scripts: build: Handle EPIPE errors when displaying help.
* guix/scripts/build.scm (%options): Handle EPIPE errors when displaying help.
Diffstat (limited to 'guix/scripts/build.scm')
-rw-r--r--guix/scripts/build.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/guix/scripts/build.scm b/guix/scripts/build.scm
index 72a24f91ac..05f022a92e 100644
--- a/guix/scripts/build.scm
+++ b/guix/scripts/build.scm
@@ -477,7 +477,7 @@ Build the given PACKAGE-OR-DERIVATION and return their output paths.\n"))
;; Specifications of the command-line options.
(cons* (option '(#\h "help") #f #f
(lambda args
- (show-help)
+ (leave-on-EPIPE (show-help))
(exit 0)))
(option '(#\V "version") #f #f
(lambda args