[Command] fixed typo in "self-update" command class and added a "selfupdate" alias for the command.
parent
6fef956677
commit
33306250f0
|
@ -26,6 +26,7 @@ class SelfUpdateCommand extends Command
|
||||||
{
|
{
|
||||||
$this
|
$this
|
||||||
->setName('self-update')
|
->setName('self-update')
|
||||||
|
->setAliases(array('selfupdate'))
|
||||||
->setDescription('Updates composer.phar to the latest version.')
|
->setDescription('Updates composer.phar to the latest version.')
|
||||||
->setHelp(<<<EOT
|
->setHelp(<<<EOT
|
||||||
The <info>self-update</info> command checks getcomposer.org for newer
|
The <info>self-update</info> command checks getcomposer.org for newer
|
||||||
|
@ -64,7 +65,7 @@ EOT
|
||||||
throw $e;
|
throw $e;
|
||||||
}
|
}
|
||||||
unlink($tempFilename);
|
unlink($tempFilename);
|
||||||
$output->writeln('<error>The download is corrupt ('.$e->getMessage().').</error>');
|
$output->writeln('<error>The download is corrupted ('.$e->getMessage().').</error>');
|
||||||
$output->writeln('<error>Please re-run the self-update command to try again.</error>');
|
$output->writeln('<error>Please re-run the self-update command to try again.</error>');
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue