写入文件增加文件锁

This commit is contained in:
whyour 2025-01-04 00:50:12 +08:00
parent 803f27a66f
commit 5a0dd073ff

View File

@ -652,7 +652,7 @@ async function replaceDomainInFile(
newDomainWithScheme += '/';
}
await fs.writeFile(filePath, updatedContent, 'utf8');
await writeFileWithLock(filePath, updatedContent);
}
async function _updateLinuxMirror(