Skip to content

Commit

Permalink
fix #95
Browse files Browse the repository at this point in the history
  • Loading branch information
Brett committed Apr 8, 2019
1 parent 7df47ac commit f8957ce
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -293,14 +293,16 @@ fn run_command(args: &Args) -> Result<(), Error> {
.map(|file| file.unwrap().path())
.filter(|file_or_dir| file_or_dir.is_dir())
.collect();
let optionals: Vec<PathBuf> = fs::read_dir("optionals").unwrap()
.map(|file| file.unwrap().path())
.filter(|file_or_dir| file_or_dir.is_dir())
.collect();
pbos.append(&mut optionals.clone());
files::clear_pbos(&p, &pbos).unwrap();
if Path::new("optionals/").exists() {
let optionals: Vec<PathBuf> = fs::read_dir("optionals").unwrap()
.map(|file| file.unwrap().path())
.filter(|file_or_dir| file_or_dir.is_dir())
.collect();
pbos.append(&mut optionals.clone());
}
files::clear_pbos(&p, &pbos).unwrap_or_print();
if args.flag_force {
files::clear_releases().unwrap();
files::clear_releases().unwrap_or_print();
}
Ok(())
} else if args.cmd_run {
Expand Down

0 comments on commit f8957ce

Please sign in to comment.