写入文件增加文件锁

This commit is contained in:
whyour
2025-12-11 01:53:50 +08:00
parent 77bb9fd8a9
commit 4fa6adc590
+1 -1
View File
@@ -673,7 +673,7 @@ async function replaceDomainInFile(
newDomainWithScheme += '/'; newDomainWithScheme += '/';
} }
await fs.writeFile(filePath, updatedContent, 'utf8'); await writeFileWithLock(filePath, updatedContent);
} }
async function _updateLinuxMirror( async function _updateLinuxMirror(