don't crash the build if git isn't available

pull/14/head
chris west 4 years ago
parent bdcc3c9d0d
commit e15d2065d3

@ -17,7 +17,7 @@ fn sh(args: &str) -> String {
if let Ok(output) = process::Command::new(cmd).args(&args).output() { if let Ok(output) = process::Command::new(cmd).args(&args).output() {
if !output.status.success() { if !output.status.success() {
eprintln!("Error running {} {:?}", cmd, args); eprintln!("Error running {} {:?}", cmd, args);
process::exit(1); return "???".to_string();
} }
String::from_utf8(output.stdout).unwrap() String::from_utf8(output.stdout).unwrap()
} else { } else {

Loading…
Cancel
Save