diff --git a/SC1069.md b/SC1069.md new file mode 100644 index 0000000..c82e0d6 --- /dev/null +++ b/SC1069.md @@ -0,0 +1,22 @@ +## You need a space before the [. + +### Problematic code: + +```sh +if[ -e file ] +then echo "exists"; fi +``` + +### Correct code: + +```sh +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 \ No newline at end of file