Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
scripts: don't error when pkg.conf doesn't exist
Daniel Shahaf committed 14 years ago
commit f04d4abf608c44918696dc889188182236114109
parent e54e423
1 file changed +1 -1
modified scripts/periodic/410.pkg-audit
@@ -39,7 +39,7 @@ if [ -r /etc/defaults/periodic.conf ]; then
fi

# Compute PKG_DBDIR from the config file.
-
if [ -z "${PKG_DBDIR}" ]; then
+
if [ -z "${PKG_DBDIR}" ] && [ -f /usr/local/etc/pkg.conf ]; then
  PKG_DBDIR=`sed -ne 's/PKG_DBDIR[[:space:]]*:[[:space:]]*\(.*\)/\1/pI' 
             < /usr/local/etc/pkg.conf`
fi