for file in * echo "$file" done
for file in * do echo "$file" done
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.
ShellCheck is a static analysis tool for shell scripts. This page is part of its documentation.