do. You can just delete it.
while true; do; true; done while true; do; true; done;
while true; do true; done while true; do true; done;
; is not allowed directly after a
do keyword. Follow it directly with either a command or a linefeed as shown in the example.
ShellCheck is a static analysis tool for shell scripts. This page is part of its documentation.