Skip to content

Commit 5c50c0b

Browse files
committed
attempt to fix coana-fix on windows
1 parent aa2ffa7 commit 5c50c0b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/commands/fix/coana-fix.mts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,8 @@ export async function coanaFix(
182182
// Copy to outputFile if provided.
183183
if (outputFile) {
184184
logger.info(`Copying fixes result to ${outputFile}`)
185-
await fs.copyFile(tmpFile, outputFile)
185+
const tmpContent = await fs.readFile(tmpFile, 'utf8')
186+
await fs.writeFile(outputFile, tmpContent, 'utf8')
186187
}
187188

188189
return { ok: true, data: { data: fixesResultJson, fixed: true } }

0 commit comments

Comments
 (0)