throws a warning in jenkins deployment in dockers image

/setup.sh: line 169: break: only meaningful in a for',while', or `until' loop
so I added while loop.