Created
December 22, 2021 18:09
-
-
Save dakom/80c69ec0fa48f204c480bea1cdb1ea85 to your computer and use it in GitHub Desktop.
Re-run some command until clean exit
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
#!/bin/sh | |
until cargo +nightly run --bin parse | |
do | |
echo "crashed with exit code $?. Respawning.." >&2 | |
sleep 1 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment