Closed masaeedu closed 6 years ago
Piping the password from stdin when using -x doesn't work because the ReadPassword method in the imported library uses a Console.ReadKey loop. Detect when stdin is redirected and use Console.ReadLine instead.
-x
ReadPassword
Console.ReadKey
Console.ReadLine
Piping the password from stdin when using
-x
doesn't work because theReadPassword
method in the imported library uses aConsole.ReadKey
loop. Detect when stdin is redirected and useConsole.ReadLine
instead.