Created
February 22, 2018 14:24
-
-
Save tiagoamaro/8467524e1066696ab3283c13bf7bb275 to your computer and use it in GitHub Desktop.
Run a command until it returns an exist status different than 0
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
# Author: James Healy (https://twitter.com/jim_healy) | |
#!/bin/bash | |
$@ | |
while [ $? -eq 0 ]; do | |
$@ | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment