Last active
August 29, 2015 14:13
-
-
Save draplater/2b5babea0cf8367e075f to your computer and use it in GitHub Desktop.
Shell Script: Try a command until success.
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/sh | |
# filename: try-until-wrapper | |
until "$@" | |
do | |
echo -e "\033[31m Try Again. \033[0m" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment