Commit f7fd5cc8 authored by Jon Pugh's avatar Jon Pugh

Only change dir if the dir exists.

parent 457bfb6a
......@@ -65,8 +65,10 @@ function drush_provision_drupal_pre_provision_verify() {
// Change current directory to makefile's directory until Drush fixes this bug: https://github.com/drush-ops/drush/issues/2482
// @TODO: Remove this once is committed.
chdir(dirname(d()->makefile));
if (!empty(d()->makefile) && file_exists(dirname(d()->makefile))) {
chdir(dirname(d()->makefile));
}
drush_invoke_process('@none', "make", $arguments, $options);
if (drush_get_error()) {
return drush_set_error("DRUSH_MAKE_FAILED",
......
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