#!/bin/bash

if curl https://de.rosettastone.com/_next/data/96ded8ec50b27dd5d491b689bfcd6cc2a16246b4/bestellen.json\?locale\=bestellen 2>/dev/null | jq -e '.pageProps.pricingPlans.center.promotionPrice != .pageProps.pricingPlans.center.fullPrice'; then
    notify-send "Rosetta Stone deal" "Rosetta Stone has a special offer! https://rosettastone.com"
fi