Skip to content

Commit

Permalink
Fix: Only pass pull --quiet when requested
Browse files Browse the repository at this point in the history
This is a fairly embarassing bug.
  • Loading branch information
emk committed Sep 22, 2020
1 parent 0f05b10 commit 504e1a3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/args/opts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ pub struct Pull {

impl ToArgs for Pull {
fn to_args(&self) -> Vec<OsString> {
// For now, this one is hard-coded. We always pass `-d` because we
// need to detach from each pod to launch the next. To avoid this,
// we'd need to use multiple parallel threads and maybe some
// intelligent output buffering.
vec!["--quiet".into()]
let mut args = vec![];
if self.quiet {
args.push(OsString::from("--quiet"));
}
args
}
}

Expand Down

0 comments on commit 504e1a3

Please sign in to comment.