Skip to content
Vidar Holen edited this page Feb 18, 2018 · 1 revision

You need a space before the :.

Problematic code:

until make
do:; done

Correct code:

until make
do :; done

Rationale:

ShellCheck found a keyword immediately followed by a :. : is a synonym for true, the command that "does nothing, successfully", and as a command name it needs a space.

do: is as invalid as dotrue. Use do :, or preferably, do true for readability.

Exceptions:

None

ShellCheck

Each individual ShellCheck warning has its own wiki page like SC1000. Use GitHub Wiki's "Pages" feature above to find a specific one, or see Checks.

Clone this wiki locally