Skip to content

Commit 3b602be

Browse files
authored
V2 bundle create: fix build_dir in select and pack actions (#1246)
2 parents ea42c5f + 48461ae commit 3b602be

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/bin/tectonic/v2cli/commands/bundle/actions.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ pub(super) fn select(cli: &BundleCreateCommand) -> Result<()> {
8282

8383
// Check output hash
8484
{
85-
let mut file = File::open(cli.build_dir.join("content/SHA256SUM"))?;
85+
let mut file = File::open(build_dir.join("content/SHA256SUM"))?;
8686
let mut hash = String::new();
8787
file.read_to_string(&mut hash)?;
8888
let hash = hash.trim();
@@ -107,7 +107,7 @@ pub(super) fn pack(cli: &BundleCreateCommand) -> Result<()> {
107107

108108
let build_dir = cli.build_dir.join(&bundle_config.bundle.name);
109109

110-
if !cli.build_dir.join("content").is_dir() {
110+
if !build_dir.join("content").is_dir() {
111111
error!(
112112
"content directory `{}/content` doesn't exist, can't continue",
113113
build_dir.to_str().unwrap()

0 commit comments

Comments
 (0)