Skip to content

Commit 9842955

Browse files
authored
(fix #4819) Allow ionic login to work in a non-interactive process (#4820)
* (fix #4819) Allow ionic login to work in a non-interactive process
1 parent 8f79cf2 commit 9842955

File tree

1 file changed

+1
-1
lines changed
  • packages/@ionic/cli/src/commands

1 file changed

+1
-1
lines changed

packages/@ionic/cli/src/commands/login.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ If you are having issues logging in, please get in touch with our Support[^suppo
160160
await this.logout();
161161
await this.env.session.login(email, password);
162162
} else {
163-
if (!this.env.flags.interactive) {
163+
if (!this.env.flags.interactive && !this.env.flags.confirm) {
164164
throw new FatalException(
165165
'Refusing to attempt browser login in non-interactive mode.\n' +
166166
`If you are attempting to log in, make sure you are using a modern, interactive terminal. Otherwise, you can log in using inline username and password with ${input('ionic login <email> <password>')}. See ${input('ionic login --help')} for more details.`

0 commit comments

Comments
 (0)