diff --git a/install.php b/install.php index 802b90179..334fea160 100644 --- a/install.php +++ b/install.php @@ -251,7 +251,7 @@ if (!is_file(BB_ROOT . 'vendor/autoload.php')) { if (is_file(BB_ROOT . 'composer.phar')) { out('- Installing dependencies...', 'info'); runProcess('php ' . BB_ROOT . 'composer.phar install --no-interaction --no-ansi'); - out("- Completed! Composer dependencies are installed!\n", 'success'); + define('COMPOSER_COMPLETED', true); } else { out('- composer.phar not found. Please, download it (composer.phar) manually', 'error'); exit; @@ -261,6 +261,15 @@ if (!is_file(BB_ROOT . 'vendor/autoload.php')) { out("- Note: Remove 'vendor' folder if you want to re-install dependencies\n"); } +// Check composer dependencies +if (defined('COMPOSER_COMPLETED')) { + if (is_file(BB_ROOT . 'vendor/autoload.php')) { + out("- Completed! Composer dependencies are installed!\n", 'success'); + } else { + exit; + } +} + // Preparing ENV if (is_file(BB_ROOT . '.env.example') && !is_file(BB_ROOT . '.env')) { if (copy(BB_ROOT . '.env.example', BB_ROOT . '.env')) {