Add highlighting to code-blocks

John Gardner
2021-12-22 19:18:14 +11:00
parent 707fb36d61
commit 4f0d2fcb1a

@@ -2,13 +2,13 @@
### Problematic code: ### Problematic code:
``` ```sh
if [ "$STUFF" = ""]; then if [ "$STUFF" = ""]; then
``` ```
### Correct code: ### Correct code:
``` ```sh
if [ "$STUFF" = "" ]; then if [ "$STUFF" = "" ]; then
``` ```
@@ -16,11 +16,10 @@ if [ "$STUFF" = "" ]; then
Bourne shells are very whitespace sensitive. Adding or removing spaces can drastically alter the meaning of a script. In these cases, ShellCheck has noticed that you're missing a space at the position indicated. Bourne shells are very whitespace sensitive. Adding or removing spaces can drastically alter the meaning of a script. In these cases, ShellCheck has noticed that you're missing a space at the position indicated.
### Exceptions ### Exceptions
none. None.
### Ignore ### Ignore
``` ```sh
# shellcheck disable=SC1020 # shellcheck disable=SC1020
if [ "$STUFF" = ""]; then if [ "$STUFF" = ""]; then
...
``` ```