Skip to content

Commit

Permalink
Merge pull request #256 from jeckersb/issue-234
Browse files Browse the repository at this point in the history
upgrade: fix --apply when the desired deployment is already staged
  • Loading branch information
cgwalters authored Jan 12, 2024
2 parents 491396e + 0067a47 commit fad73f2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,10 @@ async fn upgrade(opts: UpgradeOpts) -> Result<()> {
.unwrap_or_default();
if staged_unchanged {
println!("Staged update present, not changed.");

if opts.apply {
crate::reboot::reboot()?;
}
} else if booted_unchanged {
println!("No update available.")
} else {
Expand Down

0 comments on commit fad73f2

Please sign in to comment.