diff --git a/src/Composer/Console/Application.php b/src/Composer/Console/Application.php index 8bb590211..b0fcb0e3b 100644 --- a/src/Composer/Console/Application.php +++ b/src/Composer/Console/Application.php @@ -66,7 +66,10 @@ class Application extends BaseApplication $this->add(new Command\AboutCommand()); $this->add(new Command\InstallCommand()); $this->add(new Command\UpdateCommand()); - $this->add(new Command\SelfUpdateCommand()); $this->add(new Command\DebugPackagesCommand()); + + if ('phar:' === substr(__FILE__, 0, 5)) { + $this->add(new Command\SelfUpdateCommand()); + } } }