Skip to content

Commit

Permalink
Merge pull request consolidation#3 from iJackUA/patch-2
Browse files Browse the repository at this point in the history
Add /usr/local/bin/composer check
  • Loading branch information
DavertMik committed Feb 19, 2014
2 parents 2053b11 + 92b5b8f commit 6d78b56
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Task/Composer.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ public function __construct($pathToComposer = null)
$this->command = 'php composer.phar';
} elseif (is_executable('/usr/bin/composer')) {
$this->command = '/usr/bin/composer';
} else {
} elseif (is_executable('/usr/local/bin/composer')) {
$this->command = '/usr/local/bin/composer';
} else {
throw new TaskException(__CLASS__,"Neither local composer.phar nor global composer installation not found");
}
}
Expand Down Expand Up @@ -129,4 +131,4 @@ public function run()
return new Result($this, $code, $line);
}

}
}

0 comments on commit 6d78b56

Please sign in to comment.