1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-22 15:06:54 -05:00
denoland-deno/tests/specs/permission/path_not_permitted/main.ts

19 lines
373 B
TypeScript
Raw Normal View History

const binaryName = Deno.build.os === "windows" ? "deno.exe" : "deno";
Deno.copyFileSync(Deno.execPath(), binaryName);
console.log("Running...");
new Deno.Command(
Deno.execPath(),
{
args: [
"run",
"--allow-write",
"--allow-read",
`--allow-run=deno`,
"sub.ts",
],
stderr: "inherit",
stdout: "inherit",
},
).outputSync();