Skip to content
Snippets Groups Projects
Commit 0ef7bd83 authored by nfontrod's avatar nfontrod
Browse files

src/checkout.rs: no display

parent 5bcaafba
No related branches found
No related tags found
No related merge requests found
...@@ -139,7 +139,6 @@ pub fn remove_results(borg_path: &PathBuf, results: &PathBuf) { ...@@ -139,7 +139,6 @@ pub fn remove_results(borg_path: &PathBuf, results: &PathBuf) {
} else { } else {
format!("find {} -name '*' -type f | egrep -v -f {} | xargs rm 2>> /dev/null; find results -name '*' -type d | grep -v -P '^results$' | xargs rm -d 2>> /dev/null", results.to_str().unwrap(), borgignore.to_str().unwrap()) format!("find {} -name '*' -type f | egrep -v -f {} | xargs rm 2>> /dev/null; find results -name '*' -type d | grep -v -P '^results$' | xargs rm -d 2>> /dev/null", results.to_str().unwrap(), borgignore.to_str().unwrap())
}; };
println!("{}", cmd);
let output = Command::new("sh").arg("-c").arg(cmd).output().unwrap(); let output = Command::new("sh").arg("-c").arg(cmd).output().unwrap();
match output.status.code().unwrap() { match output.status.code().unwrap() {
0 => (), 0 => (),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment