guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

05/40: scripts: container: Handle EPIPE errors when displaying help.


From: guix-commits
Subject: 05/40: scripts: container: Handle EPIPE errors when displaying help.
Date: Tue, 17 Oct 2023 08:54:38 -0400 (EDT)

zimoun pushed a commit to branch master
in repository guix.

commit f814d33cbd3bd6f4a6c330ed0e93a214b887f401
Author: Simon Tournier <zimon.toutoune@gmail.com>
AuthorDate: Mon Oct 16 18:50:12 2023 +0200

    scripts: container: Handle EPIPE errors when displaying help.
    
    * guix/scripts/container.scm (%options): Handle EPIPE errors when displaying
    help.
---
 guix/scripts/container.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/guix/scripts/container.scm b/guix/scripts/container.scm
index 2369437043..70637bca29 100644
--- a/guix/scripts/container.scm
+++ b/guix/scripts/container.scm
@@ -57,7 +57,7 @@ Build and manipulate Linux containers.\n"))
        (format (current-error-port)
                (G_ "guix container: missing action~%")))
       ((or ("-h") ("--help"))
-       (show-help)
+       (leave-on-EPIPE (show-help))
        (exit 0))
       ((or ("-V") ("--version"))
        (show-version-and-exit "guix container"))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]