[Bug 280275] ports-mgmt/pkg: Wrong exit code in periodic script 490.status-pkg-changes
Date: Sun, 14 Jul 2024 13:52:51 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=280275 Andre Stoebe <andrestoebe@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #252044|0 |1 is obsolete| | --- Comment #3 from Andre Stoebe <andrestoebe@gmail.com> --- Created attachment 252045 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=252045&action=edit Second revised patch for 490.status-pkg-changes Or even like this... probably best, because it doesn't overwrite the exit code of pkg in case of error and both files being the same (for whatever reason). Sorry for the spam. I'll stop now. --- /usr/local/etc/periodic/daily/490.status-pkg-changes 2024-05-23 03:05:49.000000000 +0200 +++ 490.status-pkg-changes 2024-07-14 15:48:05.890146000 +0200 @@ -23,6 +23,7 @@ if [ $? -eq 1 ]; then diff -U 0 $bak/${bak_file}2 $bak/${bak_file} | \ grep '^[-+][^-+]' | sort -k 1.2 + rc=1 fi return $rc -- You are receiving this mail because: You are the assignee for the bug.