Unverified Commit ed8737f2 authored by colemanw's avatar colemanw Committed by GitHub

Merge pull request #119 from TBSliver/TBSliver/WP-Cli-Fix

CRM-21564: Change from using exec to WP_CLI::Launch
parents 9cd19334 3fa81a11
......@@ -1293,7 +1293,7 @@ if ( ! defined( 'CIVICRM_WPCLI_LOADED' ) ) {
if ( $tarfile = $this->getOption( $option, false ) ) {
WP_CLI::launch( "gzip -d $tarfile" );
$tarfile = substr( $tarfile, 0, strlen( $tarfile ) - 3 );
$this->exec( "tar -xf $tarfile -C \"$destination_path\"" );
WP_CLI::launch( "tar -xf $tarfile -C \"$destination_path\"" );
return true;
} else {
return false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment