fix: Fix specifying single output file
This commit is contained in:
parent
4b830d613b
commit
54ca36c457
1 changed files with 4 additions and 8 deletions
|
@ -68,14 +68,10 @@ pub(crate) async fn run(ctx: Arc<RwLock<dtmt::Context>>, matches: &ArgMatches) -
|
||||||
.get_one::<PathBuf>("destination")
|
.get_one::<PathBuf>("destination")
|
||||||
.expect("required parameter 'destination' is missing");
|
.expect("required parameter 'destination' is missing");
|
||||||
|
|
||||||
let is_dir = {
|
let is_dir = fs::metadata(out_path)
|
||||||
let meta = fs::metadata(out_path)
|
.await
|
||||||
.await
|
.map(|meta| meta.is_dir())
|
||||||
.wrap_err("failed to access destination path")
|
.unwrap_or(false);
|
||||||
.with_section(|| out_path.display().to_string().header("Path:"))?;
|
|
||||||
|
|
||||||
meta.is_dir()
|
|
||||||
};
|
|
||||||
|
|
||||||
let paths = collect_bundle_paths(bundles).await;
|
let paths = collect_bundle_paths(bundles).await;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue