mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-02 14:25:38 +08:00
fix plugin install not respect php binary
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user