浏览代码
fix: branch conditional
pull/7/head
Carlos Alexandro Becker
4 年前
committed by
GitHub
找不到此签名对应的密钥
GPG 密钥 ID: 4AEE18F83AFDEB23
共有
1 个文件被更改,包括
2 次插入 和
1 次删除
-
README.md
|
|
@@ -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 |
|
|
|