So I have the following bash file and right now its looping a curl request based on the for loop. However, i am tying to find out how to continue looping until the response