X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=filesystem%2Fusr%2Flocal%2Fbin%2Fmycheckrestart;h=eec85848a7aaf642e06075ba0032a189add4a4d5;hb=6459d4698ef983f7b1540589b87013c76913393d;hp=64363b885201407f748f61a158c36941d894dca6;hpb=343a048be4b32d18540c6531048d2b9a006774ae;p=distro-setup diff --git a/filesystem/usr/local/bin/mycheckrestart b/filesystem/usr/local/bin/mycheckrestart index 64363b8..eec8584 100755 --- a/filesystem/usr/local/bin/mycheckrestart +++ b/filesystem/usr/local/bin/mycheckrestart @@ -14,4 +14,9 @@ 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 + echo "with -v:" + $cmd -v +fi