mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-19 09:00:54 +00:00
fix formatting regression
This commit is contained in:
parent
0a4f8f832b
commit
7d6272fc8a
1 changed files with 2 additions and 9 deletions
|
|
@ -19,16 +19,9 @@ pub(crate) fn generate_version(add_timestamp: bool, forced_version: Option<Strin
|
||||||
} else {
|
} else {
|
||||||
let cmd = format!("git describe --long --abbrev={}", GIT_ABBREV_LEN);
|
let cmd = format!("git describe --long --abbrev={}", GIT_ABBREV_LEN);
|
||||||
let output = if cfg!(target_os = "windows") {
|
let output = if cfg!(target_os = "windows") {
|
||||||
Command::new("cmd")
|
Command::new("cmd").args(["/C", &cmd]).output().expect("failed to execute process")
|
||||||
.args(["/C", &cmd])
|
|
||||||
.output()
|
|
||||||
.expect("failed to execute process")
|
|
||||||
} else {
|
} else {
|
||||||
Command::new("sh")
|
Command::new("sh").arg("-c").arg(&cmd).output().expect("failed to execute process")
|
||||||
.arg("-c")
|
|
||||||
.arg(&cmd)
|
|
||||||
.output()
|
|
||||||
.expect("failed to execute process")
|
|
||||||
};
|
};
|
||||||
output.stdout
|
output.stdout
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue