Skip to content

Instantly share code, notes, and snippets.

@swapi
Last active December 27, 2015 03:09
Show Gist options
  • Save swapi/7257218 to your computer and use it in GitHub Desktop.
Save swapi/7257218 to your computer and use it in GitHub Desktop.
Waiting for the Nexus 5
#!/bin/sh
while [ true ]; do
found=`curl --no-progress-bar "https://play.google.com/store/devices/details/Nexus_5_32GB_Black?id=nexus_5_black_32gb" 2> /dev/null | grep "Coming soon" | wc -l`
if [ $found -eq "0" ]; then
python ~/gcsms.py send
if [ $? -eq 0 ]; then
break
else
python ~/gcsms.py send
fi
break
fi
sleep 1800
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment