mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-23 16:45:35 +08:00
fix plugin install not respect php binary
This commit is contained in:
@@ -98,7 +98,7 @@ class PluginInstallCommand extends PluginCommand
|
|||||||
// 使用内建 Composer
|
// 使用内建 Composer
|
||||||
if (file_exists(WORKING_DIR . '/runtime/composer.phar')) {
|
if (file_exists(WORKING_DIR . '/runtime/composer.phar')) {
|
||||||
$this->info('使用内建 Composer');
|
$this->info('使用内建 Composer');
|
||||||
passthru('php ' . escapeshellarg(WORKING_DIR . '/runtime/composer.phar') . ' install --no-dev', $code);
|
passthru(PHP_BINARY . ' ' . escapeshellarg(WORKING_DIR . '/runtime/composer.phar') . ' install --no-dev', $code);
|
||||||
} else {
|
} else {
|
||||||
$this->info('使用系统 Composer');
|
$this->info('使用系统 Composer');
|
||||||
passthru('composer install --no-dev', $code);
|
passthru('composer install --no-dev', $code);
|
||||||
|
|||||||
Reference in New Issue
Block a user