Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Use awk to compute PKG_DBDIR instead of sed
Alberto Villa committed 13 years ago
commit c8f4affbe4ab352454699fcdc7c398095d7bbde5
parent e149bb8
1 file changed +1 -1
modified scripts/periodic/410.pkg-audit
@@ -40,7 +40,7 @@ fi

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