From fe341a97f9d337b648ecccf628108264928707d2 Mon Sep 17 00:00:00 2001 From: zleyyij Date: Thu, 30 May 2024 18:08:46 -0600 Subject: [PATCH] vault backup: 2024-05-30 18:08:46 --- IT/Scripting.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/IT/Scripting.md b/IT/Scripting.md index 063d5b0..f013f45 100644 --- a/IT/Scripting.md +++ b/IT/Scripting.md @@ -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: ``` if somecommand; then - + # The code here will be run if somecommand has an exit code of 0 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 | Command | Description | | ----------------- | ---------------------------------------------------------------------------------------------- |