From e15d2065d3ff16e5b824c04440ddcef6cad10d10 Mon Sep 17 00:00:00 2001 From: chris west Date: Mon, 13 Jan 2020 16:40:18 -0800 Subject: [PATCH] don't crash the build if git isn't available --- build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.rs b/build.rs index c43b099..630e215 100644 --- a/build.rs +++ b/build.rs @@ -17,7 +17,7 @@ fn sh(args: &str) -> String { if let Ok(output) = process::Command::new(cmd).args(&args).output() { if !output.status.success() { eprintln!("Error running {} {:?}", cmd, args); - process::exit(1); + return "???".to_string(); } String::from_utf8(output.stdout).unwrap() } else {