Skip to content

Commit

Permalink
fix(setup/update): use correct interactive logic for CI env var
Browse files Browse the repository at this point in the history
  • Loading branch information
HipsterBrown committed Jan 5, 2025
1 parent ec8ef81 commit 6889f55
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/commands/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,16 @@ const command = buildCommand({
'linux',
]
const { default: setup } = await import(`../toolbox/setup/${target}`)

if (platformDevices.includes(target)) {
await setup({
branch,
release,
sourceRepo,
interactive: Boolean(process.env.CI) || interactive,
interactive:
typeof process.env.CI !== 'undefined'
? process.env.CI === 'false'
: interactive,
})
} else {
await setup({ branch, release })
Expand Down
5 changes: 4 additions & 1 deletion src/commands/update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ const command = buildCommand({
await update({
branch,
release,
interactive: Boolean(process.env.CI) || interactive,
interactive:
typeof process.env.CI !== 'undefined'
? process.env.CI === 'false'
: interactive,
})
},
parameters: {
Expand Down

0 comments on commit 6889f55

Please sign in to comment.