vault backup: 2024-05-30 18:08:46
This commit is contained in:
parent
ec7b2cc0aa
commit
fe341a97f9
@ -31,9 +31,10 @@ In Bash, different styles of quotes (or a backtick) mean different things:
|
|||||||
A basic if statement in bash looks like this:
|
A basic if statement in bash looks like this:
|
||||||
```
|
```
|
||||||
if somecommand; then
|
if somecommand; then
|
||||||
|
# The code here will be run if somecommand has an exit code of 0
|
||||||
fi
|
fi
|
||||||
```
|
```
|
||||||
|
Note that the if statement is terminated by `fi`. This is fairly standard throughout bash scripting, where the blocks are closed with the reverse text used to open them.
|
||||||
## Commands
|
## Commands
|
||||||
| Command | Description |
|
| Command | Description |
|
||||||
| ----------------- | ---------------------------------------------------------------------------------------------- |
|
| ----------------- | ---------------------------------------------------------------------------------------------- |
|
||||||
|
Loading…
Reference in New Issue
Block a user