You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
John Gardner edited this page Dec 22, 2021
·
4 revisions
You need a space before the ] or ]]
Problematic code:
if [ "$STUFF"=""];then
Correct code:
if [ "$STUFF"="" ];then
Rationale:
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.