From 2447190fda38d00314e4e3deec40dd9a2467d0d5 Mon Sep 17 00:00:00 2001 From: "@trimstray" Date: Sat, 15 Dec 2018 16:07:08 +0100 Subject: [PATCH] fixed branching conditional example --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 0d35d41..0a774f4 100644 --- a/README.md +++ b/README.md @@ -632,8 +632,7 @@ unset HISTFILE && exit ###### Perform a branching conditional ```bash -true && echo success -false || echo failed +your_command && { echo success;} || { echo failed; } ``` ###### Pipe stdout and stderr to separate commands