From 96a3205a91b323b00d5456c18f0fbad84286bc2f Mon Sep 17 00:00:00 2001 From: Utano Date: Tue, 25 Jun 2024 16:49:30 +0200 Subject: [PATCH] Update README.md about Bash Conditionals Better practice to use [[ instead of [ See some information about it: https://mywiki.wooledge.org/BashGuide/TestsAndConditionals#Conditional_Blocks_.28if.2C_test_and_.5B.5B.29 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 27afa2f..e40e557 100644 --- a/README.md +++ b/README.md @@ -1107,7 +1107,7 @@ When you run the above example the `hello` function will output "world!". The ab The conditional statement in bash is similar to other programming languages. Conditions have many form like the most basic form is `if` expression `then` statement where statement is only executed if expression is true. ```bash -if [ expression ]; then +if [[ expression ]]; then will execute only if expression is true else will execute if expression is false