koalaman / shellcheck Public
SC1058
Vidar Holen edited this page Oct 11, 2018
·
1 revision
Expected do.
Problematic code:
for file in *
echo "$file"
doneCorrect code:
for file in *
do
echo "$file"
doneRationale:
ShellCheck has found a loop that appears to be missing a do statement. In the problematic code, it was simply forgotten.
Verify that the do exists, and that it's in the correct place.
Exceptions:
None