mirror of
https://github.com/zaphar/ucg.git
synced 2025-07-24 18:39:50 -04:00
FIXES: Fixed bug when recursing through directories.
Also removed unnecessary print statements.
This commit is contained in:
parent
15026423db
commit
0bbb417f69
@ -153,7 +153,6 @@ fn visit_ucg_files(
|
|||||||
let entry = match dir_iter.next() {
|
let entry = match dir_iter.next() {
|
||||||
Some(e) => e,
|
Some(e) => e,
|
||||||
None => {
|
None => {
|
||||||
println!("Exiting the loop");
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -194,7 +193,7 @@ fn visit_ucg_files(
|
|||||||
result = false;
|
result = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if validate {
|
if validate && !summary.is_empty() {
|
||||||
println!("RESULTS:");
|
println!("RESULTS:");
|
||||||
println!("{}", summary);
|
println!("{}", summary);
|
||||||
}
|
}
|
||||||
@ -257,6 +256,7 @@ fn build_command(
|
|||||||
if let Ok(false) = ok {
|
if let Ok(false) = ok {
|
||||||
process::exit(1)
|
process::exit(1)
|
||||||
}
|
}
|
||||||
|
process::exit(0);
|
||||||
}
|
}
|
||||||
for file in files.unwrap() {
|
for file in files.unwrap() {
|
||||||
let pb = PathBuf::from(file);
|
let pb = PathBuf::from(file);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user