mirror of
https://github.com/trimstray/the-book-of-secret-knowledge
synced 2024-12-26 09:58:40 +01:00
fix: branch conditional
This commit is contained in:
parent
8158fde545
commit
23458cd9a1
1 changed files with 2 additions and 1 deletions
|
@ -632,7 +632,8 @@ unset HISTFILE && exit
|
|||
###### Perform a branching conditional
|
||||
|
||||
```bash
|
||||
true && { echo success;} || { echo failed; }
|
||||
true && echo success
|
||||
false || echo failed
|
||||
```
|
||||
|
||||
###### Pipe stdout and stderr to separate commands
|
||||
|
|
Loading…
Reference in a new issue