mirror of
https://github.com/deployphp/deployer.git
synced 2025-02-24 01:02:24 +01:00
Merge pull request #987 from lewactwo/patch-1
use bin/php when composer is found
This commit is contained in:
commit
d4488dbf3c
@ -96,10 +96,10 @@ set('bin/composer', function () {
|
||||
|
||||
if (empty($composer)) {
|
||||
run("cd {{release_path}} && curl -sS https://getcomposer.org/installer | {{bin/php}}");
|
||||
$composer = '{{bin/php}} {{release_path}}/composer.phar';
|
||||
$composer = '{{release_path}}/composer.phar';
|
||||
}
|
||||
|
||||
return $composer;
|
||||
return '{{bin/php}} ' . $composer;
|
||||
});
|
||||
|
||||
set('bin/symlink', function () {
|
||||
|
Loading…
x
Reference in New Issue
Block a user