Skip to content

Instantly share code, notes, and snippets.

@JensRantil
Created September 3, 2015 13:37
Show Gist options
  • Select an option

  • Save JensRantil/7d82d2fc05f8e3727e44 to your computer and use it in GitHub Desktop.

Select an option

Save JensRantil/7d82d2fc05f8e3727e44 to your computer and use it in GitHub Desktop.
A wrapping retrying script.
local runscript=1
while [ $runscript -eq 1 ]; do
./your-script
local exitcode=$?
if [ $status -eq 0 ]; then
runscript=1
else
runscript=0
fi
done
@JensRantil
Copy link
Copy Markdown
Author

Have a look at https://github.com/JensRantil/retry if you like this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment