mirror of
https://github.com/hauke68/Magallanes.git
synced 2026-08-28 18:18:57 +02:00
[Nostromo] Refactor Composer SelfUpdate
This commit is contained in:
@@ -52,7 +52,7 @@ class SelfUpdateTask extends AbstractTask
|
||||
throw new SkipException();
|
||||
}
|
||||
|
||||
$cmdUpdate = sprintf('%s self-update %s', $options['path'], $options['release']);
|
||||
$cmdUpdate = sprintf('%s self-update %s', $options['path'], $options['version']);
|
||||
/** @var Process $process */
|
||||
$process = $this->runtime->runCommand(trim($cmdUpdate));
|
||||
|
||||
@@ -83,7 +83,7 @@ class SelfUpdateTask extends AbstractTask
|
||||
protected function getOptions()
|
||||
{
|
||||
$options = array_merge(
|
||||
['path' => 'composer', 'release' => '', 'days' => 60],
|
||||
['path' => 'composer', 'version' => '', 'days' => 60],
|
||||
$this->runtime->getMergedOption('composer'),
|
||||
$this->options
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user