Skip to content

Commit

Permalink
fix: ensure the dist directory is relative to the base dir
Browse files Browse the repository at this point in the history
  • Loading branch information
ctron committed May 24, 2024
1 parent 3779928 commit b5ea64c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config/rt/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ impl RtcBuild {
// Ensure the final dist dir exists and that we have a canonical path to the dir. Normally
// we would want to avoid such an action at this layer, however to ensure that other layers
// have a reliable FS path to work with, we make an exception here.
let final_dist = build.dist;
let final_dist = core.working_directory.join(&build.dist);
if !final_dist.exists() {
std::fs::create_dir(&final_dist)
.or_else(|err| match err.kind() {
Expand Down

0 comments on commit b5ea64c

Please sign in to comment.