Commit 76b329fa authored by helmo's avatar helmo
Browse files

Add extra check of we have composer

parent 33b2b9cc
......@@ -81,7 +81,7 @@ function drush_provision_drupal_pre_provision_verify() {
// If drush variable provision_composer_install_platforms is not set to FALSE, run composer install.
if (drush_get_option('provision_composer_install_platforms', TRUE)) {
if (drush_get_option('provision_composer_install_platforms', TRUE) && shell_exec('which composer')) {
// Detect composer-based platform and run composer install if it has not been run yet.
// Step 1: Look for composer directory. Could be Drupal root. Could be the git repo_root.
if (provision_file()->exists(d()->root . DIRECTORY_SEPARATOR . 'composer.json')->status()) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment