Skip to content

Commit 8c73dc6

Browse files
bash: Remove unnecessary ; in if statements
1 parent ce02d13 commit 8c73dc6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

bash.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ echo "${name}"
2929
### If
3030

3131
```sh
32-
if [ conditional-expression ];
32+
if [ conditional-expression ]
3333
then
3434
statements
3535
fi
3636
```
3737
### If-else
3838
```sh
39-
if [ conditional-expression ];
39+
if [ conditional-expression ]
4040
then
4141
statements
4242
else
@@ -45,10 +45,10 @@ fi
4545
```
4646
### Else-If
4747
```sh
48-
if [ conditional-expression ];
48+
if [ conditional-expression ]
4949
then
5050
statements
51-
elif [ conditional-expression ];
51+
elif [ conditional-expression ]
5252
then
5353
statements
5454
else

0 commit comments

Comments
 (0)