1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-24 12:06:15 +01:00

only block interaction if env var set

This commit is contained in:
Kyle Spearrin 2020-03-12 15:37:21 -04:00
parent 13d1067eda
commit b816ddddff

View File

@ -22,7 +22,7 @@ export class LoginCommand {
protected i18nService: I18nService) { } protected i18nService: I18nService) { }
async run(email: string, password: string, cmd: program.Command) { async run(email: string, password: string, cmd: program.Command) {
const canInteract = process.stdout.isTTY && process.env.BW_NOINTERACTION !== 'true'; const canInteract = process.env.BW_NOINTERACTION !== 'true';
if ((email == null || email === '') && canInteract) { if ((email == null || email === '') && canInteract) {
const answer: inquirer.Answers = await inquirer.createPromptModule({ output: process.stderr })({ const answer: inquirer.Answers = await inquirer.createPromptModule({ output: process.stderr })({
type: 'input', type: 'input',