Skip to content

Commit

Permalink
fix(@angular/cli): show error when using non-TTY terminal without pas…
Browse files Browse the repository at this point in the history
…sing `--skip-confirmation` during `ng add`

Closes #21512

(cherry picked from commit c0f1b5e)
  • Loading branch information
alan-agius4 committed Aug 6, 2021
1 parent e7ec034 commit 8dc3c89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/angular/cli/commands/add-impl.ts
Expand Up @@ -185,7 +185,7 @@ export class AddCommand extends SchematicCommand<AddCommandSchema> {
);

if (!confirmationResponse) {
if (!isTTY) {
if (!isTTY()) {
this.logger.error(
'No terminal detected. ' +
`'--skip-confirmation' can be used to bypass installation confirmation. ` +
Expand Down

0 comments on commit 8dc3c89

Please sign in to comment.