mirror of https://github.com/docker/docs.git
Fix a bug which caused the client to never exit in interactive mode when NORAW is set.
This commit is contained in:
parent
35f5cc239b
commit
d5be77075a
|
@ -185,9 +185,10 @@ func main() {
|
|||
if err := <-receive_stdout; err != nil {
|
||||
Fatal(err)
|
||||
}
|
||||
if IsTerminal(0) && os.Getenv("NORAW") == "" {
|
||||
if oldState != nil {
|
||||
Restore(0, oldState)
|
||||
} else {
|
||||
}
|
||||
if !IsTerminal(0) {
|
||||
if err := <-send_stdin; err != nil {
|
||||
Fatal(err)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue