mirror of
https://github.com/harness/drone.git
synced 2025-05-21 19:39:59 +08:00
Merge pull request #476 from floatdrop/patch-1
Fix for «undefined: "github.com/dotcloud/docker/utils".StdCopy»
This commit is contained in:
commit
c220c1e00a
@ -14,6 +14,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/dotcloud/docker/pkg/term"
|
"github.com/dotcloud/docker/pkg/term"
|
||||||
|
"github.com/dotcloud/docker/pkg/stdcopy"
|
||||||
"github.com/dotcloud/docker/utils"
|
"github.com/dotcloud/docker/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -208,7 +209,7 @@ func (c *Client) hijack(method, path string, setRawTerminal bool, out io.Writer)
|
|||||||
if setRawTerminal {
|
if setRawTerminal {
|
||||||
_, err = io.Copy(out, br)
|
_, err = io.Copy(out, br)
|
||||||
} else {
|
} else {
|
||||||
_, err = utils.StdCopy(out, out, br)
|
_, err = stdcopy.StdCopy(out, out, br)
|
||||||
}
|
}
|
||||||
|
|
||||||
errStdout <- err
|
errStdout <- err
|
||||||
|
Loading…
Reference in New Issue
Block a user