Skip to content

Commit

Permalink
Attempt to handle cargo publish errors
Browse files Browse the repository at this point in the history
See #538.
  • Loading branch information
hannobraun committed Jul 6, 2022
1 parent c57a842 commit fedd8f3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/release-operator/src/registry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,9 @@ impl Crate {
cmd.join(" ")
};

cmd_lib::spawn_with_output!(bash -c $cmd)?.wait_with_pipe(
// The `-e` makes sure that bash stops if any non-zero status code is
// encountered, and return a non-zero status code itself.
cmd_lib::spawn_with_output!(bash -e -c $cmd)?.wait_with_pipe(
&mut |pipe| {
BufReader::new(pipe)
.lines()
Expand Down

0 comments on commit fedd8f3

Please sign in to comment.