Date: Tue, 22 Sep 2020 21:06:56 +0000 From: bugzilla-noreply@freebsd.org To: pkg@FreeBSD.org Subject: [Bug 238381] [patch] ports-mgmt/pkg periodic/security/410.pkg-audit gives verbose output Message-ID: <bug-238381-32340-68Ctu2JX3S@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-238381-32340@https.bugs.freebsd.org/bugzilla/> References: <bug-238381-32340@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D238381 Matt Simerson <matt@tnpi.net> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |matt@tnpi.net --- Comment #2 from Matt Simerson <matt@tnpi.net> --- In a very related (verbose output), how about not spitting out empty jail n= ames when they have no output? Here's a little patch demonstrating it. for j in $jails ; do output=3D'' for t in audit expiration deprecation; do output=3D${output}$(${t}_pkgs "-j ${j%|*}" ${j##*|}) last_rc=3D$? [ $last_rc -gt 1 ] && rc=3D$last_rc done if [ -n "$output" ]; then echo echo "jail: ${j%|*}" echo $output fi done Thanks for your consideration. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-238381-32340-68Ctu2JX3S>