Reformatted pages once more
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
# if
|
||||
|
||||
> Simple shell conditional
|
||||
> Simple shell conditional.
|
||||
|
||||
- Echo a different thing depending on a command's success.
|
||||
- Echo a different thing depending on a command's success:
|
||||
|
||||
`{{command}} && echo "success" || echo "failure"`
|
||||
|
||||
- Full if syntax.
|
||||
- Full if syntax:
|
||||
|
||||
`if {{condition}}; then echo "true"; else echo "false"; fi`
|
||||
|
Reference in New Issue
Block a user