Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
Use awk to compute PKG_DBDIR instead of sed
Alberto Villa committed 14 years ago
commit c8f4affbe4ab352454699fcdc7c398095d7bbde5
parent e149bb889ae4e3dbcf72427d8bad68279d57c327
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