Skip to content

Instantly share code, notes, and snippets.

@Sd-Invol
Created June 21, 2022 12:40
Show Gist options
  • Save Sd-Invol/da75139ee0cbd61ca70c10e8b6535424 to your computer and use it in GitHub Desktop.
Save Sd-Invol/da75139ee0cbd61ca70c10e8b6535424 to your computer and use it in GitHub Desktop.
Detect website changes
a=$(curl https://www.pokemon.co.jp/ex/sv/sc/ | md5)
while :
do
sleep 15
b=$(curl https://www.pokemon.co.jp/ex/sv/sc/ | md5)
if [ $a != $b ]
then
echo "SV website updated!"
tput bel
break
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment