dofor this loop?
while read -r line echo $line done
while read -r line do echo $line done
ShellCheck found a loop that appears to be missing its
do statement. Make sure the loop syntax is correct.
ShellCheck is a static analysis tool for shell scripts. This page is part of its documentation.