Skip to content

Instantly share code, notes, and snippets.

@hookdump
Forked from scruffyfox/687.sh
Created December 14, 2015 23:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hookdump/19887323ab77664edd8a to your computer and use it in GitHub Desktop.
Save hookdump/19887323ab77664edd8a to your computer and use it in GitHub Desktop.
Checks every 3 seconds if patch is out
#!/usr/bin/env bash
while [ 1 ]; do
RESP=$(curl --silent 'http://www.dota2.com/686')
if [[ $RESP != *"<title>Dota 2 - 6.86 Coming Soon</title>"* ]]; then
echo "***** PATCH OUT HYPE ******"
exit
else
echo "not out"
fi
sleep 3
done
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment