Merge pull request #232 from robywan/hidden-password-fix
Fixed detection of hidden password input capabilitypull/238/merge
commit
5ce9de422b
|
@ -139,9 +139,8 @@ class ConsoleIO implements IOInterface
|
||||||
}
|
}
|
||||||
|
|
||||||
// for other OS with shell_exec (hide the answer)
|
// for other OS with shell_exec (hide the answer)
|
||||||
if (rtrim(shell_exec($command)) === 'OK') {
|
|
||||||
$command = "/usr/bin/env bash -c 'echo OK'";
|
$command = "/usr/bin/env bash -c 'echo OK'";
|
||||||
|
if (rtrim(shell_exec($command)) === 'OK') {
|
||||||
$this->write($question, false);
|
$this->write($question, false);
|
||||||
|
|
||||||
$command = "/usr/bin/env bash -c 'read -s mypassword && echo \$mypassword'";
|
$command = "/usr/bin/env bash -c 'read -s mypassword && echo \$mypassword'";
|
||||||
|
|
Loading…
Reference in New Issue