Update flags for output file

Co-authored-by: Hornwitser <github@hornwitser.no>
This commit is contained in:
Cooldude2606andHornwitser authored and GitHub committed 2024-02-28 16:26:53 +00:00
1 parent 8dcb2197d6
commit 9a4241e4cd
1 file changed
+1 -1
+1 -1
View File
@@ -61,7 +61,7 @@ async function copyTemplateFile(src, dst, properties) {
// Attempt to write the output file, warn if it already exists
try {
await fs.outputFile(dst, outputData);
await fs.outputFile(dst, outputData, { flag: "wx" });
} catch (err) {
if (err.code === "EEXIST") {
logger.warn(`Could not create file ${dst} because it already exists`);