Skip to content

Commit

Permalink
Detect tty
Browse files Browse the repository at this point in the history
  • Loading branch information
noahtallen committed Apr 22, 2023
1 parent d6aa0f4 commit e37d1e2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/env/lib/commands/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,12 @@ function spawnCommandDirectly( config, container, command, envCwd, spinner ) {
// We need to pass absolute paths to the container.
envCwd = path.resolve( '/var/www/html', envCwd );

const isTTY = process.stdout.isTTY;
const composeCommand = [
'-f',
config.dockerComposeConfigPath,
'exec',
! isTTY ? '--no-TTY' : '',
'-w',
envCwd,
container,
Expand Down

0 comments on commit e37d1e2

Please sign in to comment.