Created
March 27, 2012 17:15
-
-
Save listrophy/2218093 to your computer and use it in GitHub Desktop.
simulate instruments' behavior
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
#!/usr/bin/env bash | |
if [[ "$1" == "--fail" ]] | |
then | |
echo 'Instruments Trace Error' | |
fi | |
if [ -t 1 ] | |
then | |
echo A | |
sleep 1 | |
echo B | |
else | |
sleep 1 | |
echo A | |
echo B | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment