Created
March 3, 2016 07:32
-
-
Save iffyuva/4c3a8ae67f9bc76677c1 to your computer and use it in GitHub Desktop.
retrying zeus in a loop
This file contains 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
#!/bin/bash | |
zeus_error_code=2 | |
while [ $zeus_error_code -ne 0 ] && [ $zeus_error_code -ne 1 ] | |
do | |
zeus "$@" | |
zeus_error_code=$? | |
done | |
exit $zeus_error_code |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment