1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-27 12:36:14 +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) { }
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) {
const answer: inquirer.Answers = await inquirer.createPromptModule({ output: process.stderr })({
type: 'input',