1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-10 17:12:51 +00:00

Fixed detection of hidden password input capability

This commit is contained in:
Roberto Ricci 2012-01-19 21:10:10 +01:00
parent 0dc3832225
commit ec665a01ab

View file

@ -139,9 +139,8 @@ class ConsoleIO implements IOInterface
}
// for other OS with shell_exec (hide the answer)
$command = "/usr/bin/env bash -c 'echo OK'";
if (rtrim(shell_exec($command)) === 'OK') {
$command = "/usr/bin/env bash -c 'echo OK'";
$this->write($question, false);
$command = "/usr/bin/env bash -c 'read -s mypassword && echo \$mypassword'";