pburkholder / dotfiles

My RC dotfiles
2 stars 0 forks source link

Check browser versions #2

Open pburkholder opened 11 months ago

pburkholder commented 11 months ago
printf "Chrome installed: "
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --version | awk '{print $NF}'

printf "Chrome available: "
curl -s 'https://chromiumdash.appspot.com/fetch_releases?channel=Stable&platform=Mac&num=1' | jq -r '.[0].version'
#curl https://omahaproxy.appspot.com/mac
echo

printf "Firefox installed: "
/Applications/Firefox.app/Contents/MacOS/firefox-bin --version | awk '{print $NF}'

printf "Firefox available: "
curl -sfI 'https://download.mozilla.org/?product=firefox-latest-ssl&os=osx&lang=en-US' | perl -n -e 'm/releases\/([\d\.]+)\/mac/ && print $1'