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