Skip to content

Commit 10e6f2d

Browse files
authored
Don't use copyFileSync in case source is read-only as future writes will fail
1 parent 4c44c81 commit 10e6f2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/execute/julia.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ async function ensureQuartoNotebookRunnerEnvironment(
397397
) {
398398
const projectTomlTemplate = juliaResourcePath("Project.toml");
399399
const projectToml = join(juliaRuntimeDir(), "Project.toml");
400-
Deno.copyFileSync(projectTomlTemplate, projectToml);
400+
Deno.writeFileSync(projectToml, Deno.readFileSync(projectTomlTemplate));
401401
const command = new Deno.Command(juliaCmd(), {
402402
args: [
403403
"--startup-file=no",

0 commit comments

Comments
 (0)