]> code.delx.au - monosys/blob - check-chrome-version
check-aur-git-updates
[monosys] / check-chrome-version
1 #!/bin/bash
2
3 URL="http://dl.google.com/linux/chrome/deb/dists/stable/main/binary-amd64/Packages"
4 LATEST_VERSION="$(curl -s "$URL" | grep 'Filename:.*google-chrome-stable' | cut -d_ -f2)"
5 INSTALLED_VERSION="$(pacman -Q google-chrome | cut -d' ' -f2)"
6
7 if [ "$LATEST_VERSION" != "$INSTALLED_VERSION" ]; then
8 echo "New Google Chrome: $INSTALLED_VERSION -> $LATEST_VERSION"
9 fi