diff --git a/IT/Scripting.md b/IT/Scripting.md index 45634fe..3c28435 100644 --- a/IT/Scripting.md +++ b/IT/Scripting.md @@ -39,9 +39,9 @@ Note that the if statement is terminated by `fi`. This is fairly standard throug You can also make use of `else` for more complex conditional logic: ``` if somecommand; then - # If the command succeed + # If the command succeeds, run this code else - echo root is missing from the password file + # If the command fails, run this code. fi ``` @@ -50,4 +50,4 @@ fi | ----------------- | ---------------------------------------------------------------------------------------------- | | `exit [CODE]` | Make the script process exit, where `[CODE]` is the exit code the process will terminate with. | | `read [VARIABLE]` | Read user input into the provided variable. | -| | | \ No newline at end of file +| `test CONDITION]` | |