summaryrefslogtreecommitdiff
path: root/guix
diff options
context:
space:
mode:
authorSimon Tournier <zimon.toutoune@gmail.com>2023-10-16 18:44:35 +0200
committerSimon Tournier <zimon.toutoune@gmail.com>2023-10-17 14:52:05 +0200
commitc4aa37fde9732fc3600400ef420a732f2cf8fd97 (patch)
tree7afaa2eade9d61583eaf563b4015733e955d629f /guix
parent6c5516ab83d4e5a5712d7fcc56b3993614b8f0b8 (diff)
scripts: substitute: Handle EPIPE errors when displaying help.
* guix/scripts/substitute.scm (%options): Handle EPIPE errors when displaying help.
Diffstat (limited to 'guix')
-rwxr-xr-xguix/scripts/substitute.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/guix/scripts/substitute.scm b/guix/scripts/substitute.scm
index 8b1f7d6fda..126f0f9c69 100755
--- a/guix/scripts/substitute.scm
+++ b/guix/scripts/substitute.scm
@@ -813,7 +813,7 @@ default value."
((or ("-V") ("--version"))
(show-version-and-exit "guix substitute"))
((or ("-h") ("--help") ())
- (show-help)
+ (leave-on-EPIPE (show-help))
(exit 0))
(_ #t))