diff --git a/PHPCI/Command/UpdateCommand.php b/PHPCI/Command/UpdateCommand.php
index 8170675a..13e31f79 100644
--- a/PHPCI/Command/UpdateCommand.php
+++ b/PHPCI/Command/UpdateCommand.php
@@ -9,6 +9,7 @@
namespace PHPCI\Command;
+use b8\Config;
use Monolog\Logger;
use PHPCI\Helper\Lang;
use Symfony\Component\Console\Command\Command;
@@ -59,19 +60,9 @@ class UpdateCommand extends Command
protected function verifyInstalled(OutputInterface $output)
{
- if (!file_exists(PHPCI_DIR . 'PHPCI/config.yml')) {
- $output->writeln(''.Lang::get('not_installed').'');
- $output->writeln(''.Lang::get('install_instead').'');
- return false;
- }
+ $config = Config::getInstance();
+ $phpciUrl = $config->get('phpci.url');
- $content = file_get_contents(PHPCI_DIR . 'PHPCI/config.yml');
- if (empty($content)) {
- $output->writeln(''.Lang::get('not_installed').'');
- $output->writeln(''.Lang::get('install_instead').'');
- return false;
- }
-
- return true;
+ return !empty($phpciUrl);
}
}