瀏覽代碼
fixed branching conditional example
pull/7/head
@trimstray
6 年之前
committed by
GitHub
沒有發現已知的金鑰在資料庫的簽署中
GPG 金鑰 ID: 4AEE18F83AFDEB23
共有
1 個檔案被更改,包括
1 行新增 和
2 行删除
-
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 |
|
|
|