Then after if statement Medium

In the script, a parsing error occurs because the 'then' keyword is missing after 'if' or 'elif' conditions. It's important to include 'then' preceded by a semicolon or linefeed for correct syntax, such as 'if' condition; then' or 'if condition\nthen'.

Detector ID
shell/then-after-if-statement@v1.0
Category
Common Weakness Enumeration (CWE) external icon
-
Tags
-