Skip to content

Commit 57328fb

Browse files
authored
Merge pull request #13 from linaro-marketing/staging-add-deploy-action
fix fs mkdir error
2 parents 098faa0 + 9bb1f0b commit 57328fb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

setup_form_data.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,9 @@ async function main() {
119119
console.log(`✅ Form data written to: ${argv.outPath}`);
120120

121121
console.log(`🧱 Generating HTML examples...`);
122+
if (!fs.existsSync("html_examples")) {
123+
fs.mkdirSync("html_examples", { recursive: true });
124+
}
122125
results.forEach(createExampleFormHTML);
123126
console.log(`✨ Done`);
124127
}

0 commit comments

Comments
 (0)