Skip to content
This repository has been archived by the owner on Feb 13, 2023. It is now read-only.

Commit

Permalink
Take into account COMPOSER_VENDOR_DIR env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
oxyc committed Apr 26, 2017
1 parent 7158dbd commit 2011166
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ if File.exist?("#{host_project_dir}/composer.json")
end

# If Drupal VM is a Composer dependency set the correct path.
vendor_dir = composer_conf.fetch('extra', {}).fetch('vendor-dir', 'vendor')
vendor_dir = ENV['COMPOSER_VENDOR_DIR'] || composer_conf.fetch('extra', {}).fetch('vendor-dir', 'vendor')
drupalvm_path = "#{vendor_dir}/geerlingguy/drupal-vm"
if Dir.exist?("#{host_project_dir}/#{drupalvm_path}")
host_drupalvm_dir = "#{host_project_dir}/#{drupalvm_path}"
Expand Down

0 comments on commit 2011166

Please sign in to comment.