Skip to content

Commit

Permalink
Minor improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
TheQuantumPhysicist committed Feb 6, 2024
1 parent 665b87d commit 7a928b1
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions wallet/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,12 @@ fn main() {
.output()
.map(|out| String::from_utf8_lossy(&out.stdout).trim().to_string());

if let Ok(git_hash) = git_head_hash {
println!("cargo:rustc-env=GIT_HEAD_HASH={}", git_hash);
} else {
println!("cargo:rustc-env=GIT_HEAD_HASH=");
}
if let Ok(git_tree_clean) = git_tree_clean {
println!("cargo:rustc-env=GIT_TREE_CLEAN={}", git_tree_clean);
} else {
println!("cargo:rustc-env=GIT_TREE_CLEAN=");
}
println!(
"cargo:rustc-env=GIT_HEAD_HASH={}",
git_head_hash.unwrap_or("".to_string())
);
println!(
"cargo:rustc-env=GIT_TREE_CLEAN={}",
git_tree_clean.unwrap_or("".to_string())
);
}

0 comments on commit 7a928b1

Please sign in to comment.