Created
September 3, 2015 13:37
-
-
Save JensRantil/7d82d2fc05f8e3727e44 to your computer and use it in GitHub Desktop.
A wrapping retrying script.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| local runscript=1 | |
| while [ $runscript -eq 1 ]; do | |
| ./your-script | |
| local exitcode=$? | |
| if [ $status -eq 0 ]; then | |
| runscript=1 | |
| else | |
| runscript=0 | |
| fi | |
| done | |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Have a look at https://github.com/JensRantil/retry if you like this.