Skip to content

Commit

Permalink
fix(core): fix setting of the interactive env var (#15084)
Browse files Browse the repository at this point in the history
Co-authored-by: Craigory Coppola <craigorycoppola@gmail.com>
(cherry picked from commit 2a76e20)
  • Loading branch information
Coly010 authored and FrozenPandaz committed Feb 17, 2023
1 parent 2fbc152 commit c9c640b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/nx/src/command-line/nx-commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -735,8 +735,8 @@ function withGenerateOptions(yargs: yargs.Argv) {
default: false,
})
.middleware((args) => {
if (process.env.NX_INTERACTIVE !== 'false') {
args.interactive = true;
if (process.env.NX_INTERACTIVE === 'false') {
args.interactive = false;
} else {
process.env.NX_INTERACTIVE = `${args.interactive}`;
}
Expand Down

0 comments on commit c9c640b

Please sign in to comment.