mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +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 {
|
||||
let cmd = format!("git describe --long --abbrev={}", GIT_ABBREV_LEN);
|
||||
let output = if cfg!(target_os = "windows") {
|
||||
Command::new("cmd")
|
||||
.args(["/C", &cmd])
|
||||
.output()
|
||||
.expect("failed to execute process")
|
||||
Command::new("cmd").args(["/C", &cmd]).output().expect("failed to execute process")
|
||||
} else {
|
||||
Command::new("sh")
|
||||
.arg("-c")
|
||||
.arg(&cmd)
|
||||
.output()
|
||||
.expect("failed to execute process")
|
||||
Command::new("sh").arg("-c").arg(&cmd).output().expect("failed to execute process")
|
||||
};
|
||||
output.stdout
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue