From 4016bb972569072d0c98e7691ea4d2e89dcfe459 Mon Sep 17 00:00:00 2001 From: zleyyij Date: Thu, 30 May 2024 18:10:46 -0600 Subject: [PATCH] vault backup: 2024-05-30 18:10:46 --- IT/Scripting.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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]` | |