Skip to content
This repository was archived by the owner on Jan 3, 2024. It is now read-only.

Commit 40dc85e

Browse files
cprnthislg
andauthored
Support for COMPOSER_BIN environment variable (#3)
passing `COMPOSER_BIN` env variable instead Co-authored-by: Thibaut Selingue <thibaut.selingue@lephare.com>
1 parent 737f460 commit 40dc85e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

bin/local-php-security-checker-installer

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@ if (!isset($versionOutput[0])) {
1010

1111
$version = $versionOutput[0];
1212

13+
$composer = getenv('COMPOSER_BIN') ?: 'composer';
14+
1315
$bindirOutput = null;
14-
exec('composer config bin-dir', $bindirOutput);
16+
exec("{$composer} config bin-dir", $bindirOutput);
1517

1618
if (!isset($bindirOutput[0])) {
1719
exit(2);

0 commit comments

Comments
 (0)