Skip to content

Commit

Permalink
Fix Launcher on Windows
Browse files Browse the repository at this point in the history
Start with drupal executable.
Don't assume composer always creates a symlink.
  • Loading branch information
luenemam committed Nov 13, 2016
1 parent c30185b commit 35de523
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/Utils/Launcher.php
Expand Up @@ -16,13 +16,8 @@ public function launch($root)
{
chdir($root);

/* drupal symlink executable */
$drupal = $root.'/vendor/bin/drupal';

if (!file_exists($drupal)) {
/* drupal symlink does not work, try full path */
$drupal = $root.'/vendor/drupal/console/bin/drupal';
}
/* drupal executable */
$drupal = $root.'/vendor/drupal/console/bin/drupal';

if (!file_exists($drupal)) {
return false;
Expand Down

0 comments on commit 35de523

Please sign in to comment.