Bash file: Keep running a program until it’s successful

Bash file: Keep running a program until it’s successful