Skip to content

Instantly share code, notes, and snippets.

@iffyuva
Created March 3, 2016 07:32
Show Gist options
  • Save iffyuva/4c3a8ae67f9bc76677c1 to your computer and use it in GitHub Desktop.
Save iffyuva/4c3a8ae67f9bc76677c1 to your computer and use it in GitHub Desktop.
retrying zeus in a loop
#!/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