mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-22 22:36:06 +08:00
写入文件增加文件锁
This commit is contained in:
parent
3d34295e62
commit
d0725bee7f
|
@ -645,7 +645,7 @@ async function replaceDomainInFile(
|
||||||
newDomainWithScheme += '/';
|
newDomainWithScheme += '/';
|
||||||
}
|
}
|
||||||
|
|
||||||
await fs.writeFile(filePath, updatedContent, 'utf8');
|
await writeFileWithLock(filePath, updatedContent);
|
||||||
}
|
}
|
||||||
|
|
||||||
async function _updateLinuxMirror(
|
async function _updateLinuxMirror(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user