Skip to content

Commit

Permalink
Address nit
Browse files Browse the repository at this point in the history
  • Loading branch information
aldur committed Dec 16, 2024
1 parent 6c0cc0b commit d1708cd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions signer/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ pub fn set_up_build_info() {

let version = String::from_utf8_lossy(&output.stdout);

let git_hash = match std::process::Command::new("git")
let git_output = std::process::Command::new("git")
.args(["rev-parse", "HEAD"])
.output()
{
.output();

let git_hash = match git_output {
Ok(output) if output.status.success() && !output.stdout.is_empty() => {
String::from_utf8_lossy(&output.stdout).to_string()
}
Expand Down

0 comments on commit d1708cd

Please sign in to comment.