Skip to content

Instantly share code, notes, and snippets.

@listrophy
Created March 27, 2012 17:15
Show Gist options
  • Save listrophy/2218093 to your computer and use it in GitHub Desktop.
Save listrophy/2218093 to your computer and use it in GitHub Desktop.
simulate instruments' behavior
#!/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