Skip to content

Commit

Permalink
Merge pull request #150 from Screenly/feature/detect_version_changes
Browse files Browse the repository at this point in the history
Adds: detecting version metadata changes - consider changed as a new …
  • Loading branch information
korvyashka authored Feb 29, 2024
2 parents fd1a834 + f1b3223 commit 21d6387
Show file tree
Hide file tree
Showing 3 changed files with 302 additions and 32 deletions.
10 changes: 8 additions & 2 deletions src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -971,9 +971,15 @@ pub fn handle_cli_edge_app_command(command: &EdgeAppCommands) {

let revision = if *latest {
match edge_app_command.get_latest_revision(&actual_app_id) {
Ok(rev) => rev,
Ok(rev) => match rev {
Some(rev) => rev.revision,
None => {
println!("Failed to get latest Edge App revision.");
std::process::exit(1);
}
},
Err(e) => {
println!("Failed to get latest edge app revision: {}", e);
println!("Failed to get latest Edge App revision: {}", e);
std::process::exit(1);
}
}
Expand Down
Loading

0 comments on commit 21d6387

Please sign in to comment.