mirror of
https://github.com/deployphp/deployer.git
synced 2025-02-24 09:12:51 +01:00
Hide self-update when composer installed.
This commit is contained in:
parent
eab095dfd7
commit
c765f00a46
@ -42,7 +42,9 @@ class Application extends Console
|
||||
protected function getDefaultCommands()
|
||||
{
|
||||
$commands = parent::getDefaultCommands();
|
||||
$commands[] = $this->selfUpdateCommand();
|
||||
if ('phar:' === substr(__FILE__, 0, 5)) {
|
||||
$commands[] = $this->selfUpdateCommand();
|
||||
}
|
||||
return $commands;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user