diff --git a/tools/src/repo.rs b/tools/src/repo.rs index 9f3cb28..456d8fb 100644 --- a/tools/src/repo.rs +++ b/tools/src/repo.rs @@ -60,13 +60,18 @@ impl Repo { // println!("trying {:?} ({:?})", dir_entry, file_type); if file_type.is_file() { let path = dir_entry.path(); - match self.add_file(&path) { - Ok(()) => { - // println!("added {:?}", dir_entry); - } - Err(e) => { - println!("failed to read recipe from {:?}: {:?}", path, e); + match path.extension() { + Some(s) if s.eq("toml") => { + match self.add_file(&path) { + Ok(()) => { + // println!("added {:?}", dir_entry); + } + Err(e) => { + println!("failed to read recipe from {:?}: {:?}", path, e); + } + } } + _ => (), // skip unknown file extensions } } else if file_type.is_dir() { let _ = self.add_dir(dir_entry.path().to_str().unwrap());