aboutsummaryrefslogtreecommitdiff
path: root/etc/periodic/weekly/400.status-pkg
diff options
context:
space:
mode:
Diffstat (limited to 'etc/periodic/weekly/400.status-pkg')
-rwxr-xr-xetc/periodic/weekly/400.status-pkg10
1 files changed, 9 insertions, 1 deletions
diff --git a/etc/periodic/weekly/400.status-pkg b/etc/periodic/weekly/400.status-pkg
index aac228bc9484..050b47b8ae5b 100755
--- a/etc/periodic/weekly/400.status-pkg
+++ b/etc/periodic/weekly/400.status-pkg
@@ -16,5 +16,13 @@ case "$weekly_status_pkg_enable" in
echo ""
echo "Check for out of date packages:"
- pkg_version -v | sed -n 's/^\([^ ]*\) *< */ \1 /p';;
+ rc=$(pkg_version -v |
+ sed -n 's/^\([^ ]*\) *< */ \1 /p' |
+ tee /dev/stderr |
+ wc -l)
+ [ $rc -gt 1 ] && rc=1;;
+
+ *) rc=0;;
esac
+
+exit $rc