Skip to content

Commit

Permalink
cirrus-ci.5990703843508224: moved @Luap99's suggestion around to work…
Browse files Browse the repository at this point in the history
… around a hack.
  • Loading branch information
arizvisa committed May 30, 2023
1 parent 9435d7f commit a3c3d12
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cmd/podman/containers/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,18 +150,18 @@ func run(cmd *cobra.Command, args []string) error {
}
}

// First set the default streams before they get modified by any flags.
runOpts.OutputStream = os.Stdout
runOpts.InputStream = os.Stdin
runOpts.ErrorStream = os.Stderr

// If -i is not set, clear stdin
if !cliVals.Interactive {
runOpts.InputStream = nil
}

passthrough := cliVals.LogDriver == define.PassthroughLogging

// First set the default streams before they get modified by any flags.
runOpts.OutputStream = os.Stdout
runOpts.InputStream = os.Stdin
runOpts.ErrorStream = os.Stderr

// If attach is set, clear stdin/stdout/stderr and only attach requested
if cmd.Flag("attach").Changed {
if passthrough {
Expand Down

0 comments on commit a3c3d12

Please sign in to comment.