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:
parent
13d1067eda
commit
b816ddddff
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user