Skip to content

Commit 2f80f2d

Browse files
committed
Fix missing jars directory
1 parent 482b713 commit 2f80f2d

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

gulpfile.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,12 @@ async function downloadJar(url, fileName, destDir) {
127127
});
128128

129129
console.log(`Downloading ${url}`);
130+
131+
// Ensure destination directory exists
132+
if (!fs.existsSync(destDir)) {
133+
fs.mkdirSync(destDir, { recursive: true });
134+
}
135+
130136
const fullPath = path.join(destDir, fileName);
131137
const writer = fs.createWriteStream(fullPath);
132138
response.data.pipe(writer);

0 commit comments

Comments
 (0)