File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010// composer version to `.dep/composer.phar`. To use specific composer version
1111// download desired phar and place it at `.dep/composer.phar`.
1212set ('bin/composer ' , function () {
13- if (commandExist ('composer ' )) {
14- return '{{bin/php}} ' . locateBinaryPath ('composer ' );
15- }
16-
1713 if (test ('[ -f {{deploy_path}}/.dep/composer.phar ] ' )) {
1814 return '{{bin/php}} {{deploy_path}}/.dep/composer.phar ' ;
1915 }
2016
17+ if (commandExist ('composer ' )) {
18+ return '{{bin/php}} ' . locateBinaryPath ('composer ' );
19+ }
20+
2121 warning ("Composer binary wasn't found. Installing latest composer to \"{{deploy_path}}/.dep/composer.phar \". " );
2222 run ("cd {{deploy_path}} && curl -sS https://getcomposer.org/installer | {{bin/php}} " );
2323 run ('mv {{deploy_path}}/composer.phar {{deploy_path}}/.dep/composer.phar ' );
You can’t perform that action at this time.
0 commit comments