Skip to content

Instantly share code, notes, and snippets.

@fluidum
Last active August 13, 2020 18:55
Show Gist options
  • Save fluidum/b8097768807f9d981d3ad08e4e4fee2a to your computer and use it in GitHub Desktop.
Save fluidum/b8097768807f9d981d3ad08e4e4fee2a to your computer and use it in GitHub Desktop.
# list.txt contains Google Chrome extension id per line
for line in $(cat chrome_extensions.txt | sed '/^$/d' | tr -s " ")
do
cnt=`curl -s -I https://chrome.google.com/webstore/detail/${line} | grep 'HTTP/2 301' | wc -l`
if [ "$cnt" -ne 1 ]; then
out+="https://chrome.google.com/webstore/detail/${line}
"
fi
done
if [ "${out}" ]; then
echo "$out" | mutt -s "Chrome Extensions monitoring" {YOUR_EMAIL}
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment