mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Updated SC1053 (markdown)
@@ -9,7 +9,9 @@ if mycommand; then echo "True"; else; echo "False"; fi
|
|||||||
### Correct code:
|
### Correct code:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
if mycommand; then echo "True"; else echo "False"; fi```
|
if mycommand; then echo "True"; else echo "False"; fi
|
||||||
|
```
|
||||||
|
|
||||||
### Rationale:
|
### Rationale:
|
||||||
|
|
||||||
`else` keywords should not be followed by semicolons. It's not valid shell syntax.
|
`else` keywords should not be followed by semicolons. It's not valid shell syntax.
|
||||||
|
Reference in New Issue
Block a user