From c70239b34546048f604618e64b418eb36af1923f Mon Sep 17 00:00:00 2001 From: Litu Zou Date: Tue, 14 Jan 2025 18:01:21 +0000 Subject: [PATCH] fix build_dir in select and pack actions --- src/bin/tectonic/v2cli/commands/bundle/actions.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/tectonic/v2cli/commands/bundle/actions.rs b/src/bin/tectonic/v2cli/commands/bundle/actions.rs index 412a0f9b2..71c976e6b 100644 --- a/src/bin/tectonic/v2cli/commands/bundle/actions.rs +++ b/src/bin/tectonic/v2cli/commands/bundle/actions.rs @@ -82,7 +82,7 @@ pub(super) fn select(cli: &BundleCreateCommand) -> Result<()> { // Check output hash { - let mut file = File::open(cli.build_dir.join("content/SHA256SUM"))?; + let mut file = File::open(build_dir.join("content/SHA256SUM"))?; let mut hash = String::new(); file.read_to_string(&mut hash)?; let hash = hash.trim(); @@ -107,7 +107,7 @@ pub(super) fn pack(cli: &BundleCreateCommand) -> Result<()> { let build_dir = cli.build_dir.join(&bundle_config.bundle.name); - if !cli.build_dir.join("content").is_dir() { + if !build_dir.join("content").is_dir() { error!( "content directory `{}/content` doesn't exist, can't continue", build_dir.to_str().unwrap()