Skip to content

Commit

Permalink
Fix dest already exists error by setting overwrite flag
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffcharles committed Dec 3, 2024
1 parent 55b65ec commit a930bd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/app/src/cli/services/function/binaries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ export async function downloadBinary(bin: DownloadableBinary) {
const outputStream = createFileWriteStream(tmpFile)
await bin.processResponse(responseStream, outputStream)
await chmod(tmpFile, 0o775)
await moveFile(tmpFile, bin.path)
await moveFile(tmpFile, bin.path, {overwrite: true})
})
},
async () => {},
Expand Down

0 comments on commit a930bd6

Please sign in to comment.