chore(build): print only stem instead of full path in warn

This commit is contained in:
Erica Marigold 2025-01-31 13:08:24 +00:00
parent 262c75d36d
commit 0e4dd8a7a8
Signed by: DevComp
GPG key ID: 429EF1C337871656

View file

@ -28,7 +28,7 @@ fn main() -> Result<()> {
if let Ok(ref key) = key_res {
let path = out_dir.join(format!("{}.pem", key.algorithm().as_str()));
if path.exists() {
println!("cargo:warning=Skipping existing host key: {:?}", path);
println!("cargo:warning=Skipping existing host key: {:?}", path.file_stem());
continue;
}