mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-03-18 05:04:51 +08:00
fix plugin install not respect php binary
This commit is contained in:
parent
f323d75b63
commit
4570012a9d
@ -98,7 +98,7 @@ class PluginInstallCommand extends PluginCommand
|
||||
// 使用内建 Composer
|
||||
if (file_exists(WORKING_DIR . '/runtime/composer.phar')) {
|
||||
$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 {
|
||||
$this->info('使用系统 Composer');
|
||||
passthru('composer install --no-dev', $code);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user