X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/blobdiff_plain/0426ff00a1ebb927e8ca349e9338205ce45cb239..fc9dd859a62fa1547c00207d4d21ea191d518e98:/etc/periodic/security/670.pkgsrcaudit diff --git a/etc/periodic/security/670.pkgsrcaudit b/etc/periodic/security/670.pkgsrcaudit index ceeaa0ec9e..c56b01a33a 100644 --- a/etc/periodic/security/670.pkgsrcaudit +++ b/etc/periodic/security/670.pkgsrcaudit @@ -33,6 +33,7 @@ then source_periodic_confs fi +PATH=$PATH:/usr/pkg/sbin pkgdb_dir=${pkgdb_dir:-/var/db/pkg} if pkg_info -K ${pkgdb_dir} -q -E '*'; then @@ -66,5 +67,7 @@ if pkg_info -K ${pkgdb_dir} -q -E '*'; then fi if [ $rc0 -gt 0 ] || [ $rc1 -gt 0 ] || [ $rc2 -gt 0 ]; then rc=1 +else + rc=0 fi exit "$rc"