Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Status: Available for use
### Added

### Fixed
- Don't add "-i" to docker commands when stdin is not a tty. This allows commands `floki run -- <command>` to be run from inside other scripts even if stdout looks like a tty.

## [1.0.0] - 2022-09-12

Expand Down
2 changes: 1 addition & 1 deletion src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ impl DockerCommandBuilder {

fn base_args(&self) -> Vec<&OsStr> {
let mut base_args: Vec<&OsStr> = vec!["run".as_ref(), "--rm".as_ref(), "-t".as_ref()];
if atty::is(atty::Stream::Stdout) {
if atty::is(atty::Stream::Stdout) && atty::is(atty::Stream::Stdin) {
base_args.push("-i".as_ref());
}
base_args
Expand Down