Skip to content

Commit 6549aa5

Browse files
committed
Prevent output duplicating from attached stdout/err and logs stdout/err.
Correct acceptance test path
1 parent 459c7e2 commit 6549aa5

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

acceptance-tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function run() {
4848
cd /home/vagrant/.go/src/github.com/docker-exec/dexec
4949
go get
5050
go install
51-
bats _bats/dexec.bats"
51+
bats .bats/dexec.bats"
5252
down
5353
}
5454

main.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,12 +104,8 @@ func RunDexecContainer(cliParser cli.CLI) int {
104104
go func() {
105105
if err = client.AttachToContainer(docker.AttachToContainerOptions{
106106
Container: container.ID,
107-
OutputStream: os.Stdout,
108-
ErrorStream: os.Stderr,
109107
InputStream: os.Stdin,
110108
Stream: true,
111-
Stdout: true,
112-
Stderr: true,
113109
Stdin: true,
114110
}); err != nil {
115111
log.Fatal(err)

0 commit comments

Comments
 (0)