Skip to content

Commit

Permalink
fix dir not found
Browse files Browse the repository at this point in the history
  • Loading branch information
shinohara-rin committed May 5, 2024
1 parent 740c037 commit 1070ee9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30981,6 +30981,7 @@ function download_file(url, filename) {
return;
}

fs.mkdirSync(path.dirname(filename), { recursive: true });
const result = spawnSync("curl", ["-fSL", url, "-o", filename], {
stdio: "inherit",
});
Expand Down
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ function download_file(url, filename) {
return;
}

fs.mkdirSync(path.dirname(filename), { recursive: true });
const result = spawnSync("curl", ["-fSL", url, "-o", filename], {
stdio: "inherit",
});
Expand Down

0 comments on commit 1070ee9

Please sign in to comment.