#!/bin/bash
stamp="/var/lib/update-notifier/updates-available"
[ ! -r "$stamp" ] || cat "$stamp" | grep -v -i "esm\|pro status\|ubuntu.com\|activez\|visitez\|maintenance\|mise à jour\|update" | grep -v '^$' | head -c -1
find $stamp -newermt 'now-7 days' 2> /dev/null | grep -q -m 1 '.' || /usr/share/update-notifier/notify-updates-outdated
