mirror of
https://github.com/whyour/qinglong.git
synced 2026-07-01 04:40:38 +08:00
修复创建脚本可能失败
This commit is contained in:
@@ -13,7 +13,7 @@ function getUniqueLockPath(filePath: string) {
|
||||
|
||||
export async function writeFileWithLock(
|
||||
filePath: string,
|
||||
content: string | Buffer,
|
||||
content: string,
|
||||
options: Parameters<typeof writeFile>[2] = {},
|
||||
) {
|
||||
if (typeof options === 'string') {
|
||||
|
||||
Reference in New Issue
Block a user