Skip to content

Commit

Permalink
Merge pull request #9 from tylermaginnis/feature/TM_skip-upgrade-if-u…
Browse files Browse the repository at this point in the history
…nchanged

Suppress exit_code 2
  • Loading branch information
tylermaginnis authored Aug 27, 2024
2 parents f83eb5e + d6d3a31 commit 762dd6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ impl CommandLine {
let kind = match output {
Err(err) => Err(CommandErrorKind::FailedToStart { err }),
Ok(output) => {
if output.status.success() {
if output.status.success() || exit_code == 2 {
Ok(())
} else {
Err(CommandErrorKind::BadExitCode {})
Expand Down

0 comments on commit 762dd6c

Please sign in to comment.