From fd898a99f50a3722bb4542cb906032da61bfb6c1 Mon Sep 17 00:00:00 2001 From: Vidar Holen Date: Sat, 17 Feb 2018 22:17:53 -0800 Subject: [PATCH] Created SC1069 (markdown) --- SC1069.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 SC1069.md 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