#!/bin/sh
c=$(firefox -v |awk '{print $3}')
#l=$(curl -s https://product-details.mozilla.org/1.0/firefox_versions.json | jq -r '.LATEST_FIREFOX_VERSION')
l=$(curl -s https://product-details.mozilla.org/1.0/firefox_versions.json |awk -F"\"" '/LATEST_FIREFOX_VERSION/ {print $4}')
[ $l = $c ]  || notify-send -i firefox "Firefox $c is installed.
The latest version of firefox $l.
Update!" &
[ ! -f /usr/lib/libpulse.so ] && pu=apulse 
$pu exec /opt/firefox-bin-ru/firefox --class "Firefox" --name "Firefox" "$@"
