2 SC1069
Joachim Ansorg edited this page 2021-11-12 10:42:17 +01:00

You need a space before the [.

Problematic code:

if[ -e file ]
then echo "exists"; fi

Correct code:

if [ -e file ]
then echo "exists"; fi

Rationale:

ShellCheck found a keyword immediately followed by a [. There needs to be a space between them.

Exceptions:

None