Skip to content

Instantly share code, notes, and snippets.

@paydro
Created May 29, 2012 20:05
Show Gist options
  • Save paydro/2830390 to your computer and use it in GitHub Desktop.
Save paydro/2830390 to your computer and use it in GitHub Desktop.
Script to wait on something to happen
while :
do
building=`bulldozer images:list | grep postprocessor-2012-05-29 | grep available | wc -l`
if [ $building -eq 1 ]
then
say "post processor image finished building"
break
fi
sleep 5
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment