X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=filesystem%2Fusr%2Flocal%2Fbin%2Fmycheckrestart;h=1d4bdaa4fa584ffb5199099d11f2408ccc90908e;hb=32a1673064cfd9eaa165b4ea62fa416f02f3dfd2;hp=64363b885201407f748f61a158c36941d894dca6;hpb=343a048be4b32d18540c6531048d2b9a006774ae;p=distro-setup diff --git a/filesystem/usr/local/bin/mycheckrestart b/filesystem/usr/local/bin/mycheckrestart index 64363b8..1d4bdaa 100755 --- a/filesystem/usr/local/bin/mycheckrestart +++ b/filesystem/usr/local/bin/mycheckrestart @@ -14,4 +14,7 @@ if [[ $HOSTNAME != "$MAIL_HOST" && $hn != li.b8.nz && ! $DISPLAY ]]; then exit 0 fi -$s checkrestart | sed '/^Found 0 processes using old versions of upgraded files$/d' +cmd="$s /usr/sbin/checkrestart -p" +if [[ $($cmd | sed '/^Found 0 processes using old versions of upgraded files$/d' | wc -l) != 0 ]]; then + $cmd +fi