diff options
author | Renato Botelho <garga@FreeBSD.org> | 2014-02-14 12:00:20 -0200 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2014-02-17 11:11:33 -0300 |
commit | a8495e500aec7fed36e1a90673298622b14f254e (patch) | |
tree | 1105cb395ba390f56f73dfacf9ea9226cf5ab0ce /etc/inc | |
parent | fb92e33201d5572530c8cdaa75635b750a13a4db (diff) | |
download | pfsense-a8495e500aec7fed36e1a90673298622b14f254e.zip pfsense-a8495e500aec7fed36e1a90673298622b14f254e.tar.gz |
Grab exec result just to be careful
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/pkg-utils.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/pkg-utils.inc b/etc/inc/pkg-utils.inc index c4e3ef4..e8c0549 100644 --- a/etc/inc/pkg-utils.inc +++ b/etc/inc/pkg-utils.inc @@ -567,11 +567,11 @@ function pkg_fetch_recursive($pkgname, $filename, $dependlevel = 0, $base_url = $pkgaddout = ""; - exec("/usr/local/sbin/pbi_add " . $pkgstaging . " -f -v --no-checksig " . escapeshellarg($fetchto) . " 2>&1", $pkgaddout, $rc); + $result = exec("/usr/local/sbin/pbi_add " . $pkgstaging . " -f -v --no-checksig " . escapeshellarg($fetchto) . " 2>&1", $pkgaddout, $rc); pkg_debug($pkgname . " " . print_r($pkgaddout, true) . "\n"); if ($rc == 0) { setup_library_paths(); - exec("/usr/local/sbin/pbi_info " . escapeshellarg(preg_replace('/\.pbi$/','',$filename)) . " | /usr/bin/awk '/Prefix/ {print $2}'",$pbidir); + $result = exec("/usr/local/sbin/pbi_info " . escapeshellarg(preg_replace('/\.pbi$/','',$filename)) . " | /usr/bin/awk '/Prefix/ {print $2}'",$pbidir); $pbidir = $pbidir[0]; $linkdirs = array('bin','sbin'); foreach($linkdirs as $dir) { |