Skip to content

Commit 39642bb

Browse files
committed
#242: fix file mount failures on wsl for files that get removed and rewritten
1 parent b903e1c commit 39642bb

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

utils/write-file.js

-4
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,9 @@ module.exports = (file, data, options = {}) => {
1313
const extension = options.extension || path.extname(file);
1414
// linux line endings
1515
const forcePosixLineEndings = options.forcePosixLineEndings ?? false;
16-
// set overwrite if not set
17-
const overwrite = options.overwrite ?? true;
1816

1917
// data is a string and posixOnly then replace
2018
if (typeof data === 'string' && forcePosixLineEndings) data = data.replace(/\r\n/g, '\n');
21-
// if overwrite is on make sure we purge first
22-
if (overwrite) remove(file);
2319

2420
switch (extension) {
2521
case '.yaml':

0 commit comments

Comments
 (0)