SC1130 – ShellCheck Wiki

See this page on GitHub


You need a space before the :.

Problematic code:

until make
do:; done

Correct code:

until make
do :; done


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.



ShellCheck is a static analysis tool for shell scripts. This page is part of its documentation.