From 83373b6c7bc2d68ecc47fd2a015e799cd588a252 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=C3=B3czi=20Zolt=C3=A1n?= Date: Tue, 7 Jul 2020 17:07:48 +0200 Subject: [PATCH] Fix script execution. --- README.md | 2 +- mod.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 26c5d4b..88eafc3 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ the following code runs `deno --allow-net example.ts` which is located in `/some ```bash -/some/work/dir$ deno --allow-run --allow-read https://deno.land/x/rhinoder@v1.2.0/mod.ts --allow-net example.ts +/some/work/dir$ deno run --allow-run --allow-read https://deno.land/x/rhinoder@v1.2.0/mod.ts --allow-net example.ts ``` ## Thanks to diff --git a/mod.ts b/mod.ts index be2f644..de2f030 100644 --- a/mod.ts +++ b/mod.ts @@ -1,5 +1,5 @@ function startProcess(args: string[] = []): Deno.Process { - return Deno.run({ cmd: ['deno', ...args] }); + return Deno.run({ cmd: ['deno', 'run', ...args] }); } const throttle = 500;