mirror of
https://github.com/trimstray/the-book-of-secret-knowledge.git
synced 2024-12-19 18:06:14 +00:00
fix: branch conditional
This commit is contained in:
parent
8158fde545
commit
23458cd9a1
@ -632,7 +632,8 @@ unset HISTFILE && exit
|
|||||||
###### Perform a branching conditional
|
###### Perform a branching conditional
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
true && { echo success;} || { echo failed; }
|
true && echo success
|
||||||
|
false || echo failed
|
||||||
```
|
```
|
||||||
|
|
||||||
###### Pipe stdout and stderr to separate commands
|
###### Pipe stdout and stderr to separate commands
|
||||||
|
Loading…
Reference in New Issue
Block a user