Skip to content

Commit 2c7b502

Browse files
committed
Overwrite file when running patchelf
1 parent 237ea0d commit 2c7b502

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

editors/code/src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ async function patchelf(dest: vscode.Uri): Promise<void> {
286286
}
287287
`;
288288
const origFile = vscode.Uri.file(dest.fsPath + "-orig");
289-
await vscode.workspace.fs.rename(dest, origFile);
289+
await vscode.workspace.fs.rename(dest, origFile, { overwrite: true });
290290
progress.report({ message: "Patching executable", increment: 20 });
291291
await new Promise((resolve, reject) => {
292292
const handle = exec(`nix-build -E - --argstr srcStr '${origFile.fsPath}' -o '${dest.fsPath}'`,

0 commit comments

Comments
 (0)