v0.2.0 #7

Merged
PlexSheep merged 15 commits from devel into master 2024-05-24 09:31:17 +02:00
1 changed files with 2 additions and 2 deletions
Showing only changes of commit 256b362f39 - Show all commits

View File

@ -63,11 +63,11 @@ pub struct Cli {
fn main() {
let mut cli = cli_parse();
let mut sources: Vec<Box<dyn DataSource>> = Vec::new();
if !cli.data_source.is_empty() && cli.data_source[0] != "-" {
if !cli.data_source.is_empty() && !cli.data_source.contains(&"-".to_string()) {
for data_source in &cli.data_source {
let data_source: PathBuf = PathBuf::from(data_source);
if data_source.is_dir() {
warn!("Not a file {:?}, skipping", data_source);
warn!("'{:?}' is a directory and cannot be dumped, skipping", data_source);
// std::process::exit(1);
continue;
}