Skip to content

Commit 8dc3c89

Browse files
committed
fix(@angular/cli): show error when using non-TTY terminal without passing --skip-confirmation during ng add
Closes #21512 (cherry picked from commit c0f1b5e)
1 parent e7ec034 commit 8dc3c89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/angular/cli/commands/add-impl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ export class AddCommand extends SchematicCommand<AddCommandSchema> {
185185
);
186186

187187
if (!confirmationResponse) {
188-
if (!isTTY) {
188+
if (!isTTY()) {
189189
this.logger.error(
190190
'No terminal detected. ' +
191191
`'--skip-confirmation' can be used to bypass installation confirmation. ` +

0 commit comments

Comments
 (0)