From b76007d25caf2cd9325813149a907c1e51728fca Mon Sep 17 00:00:00 2001 From: Yoshiya Hinosawa Date: Mon, 29 Jul 2019 17:46:21 +0900 Subject: refactor: use Deno.execPath where possible (denoland/deno_std#548) Original: https://github.com/denoland/deno_std/commit/287b0a9cd259952387739405152e031e9abcdb63 --- installer/mod.ts | 2 +- installer/test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'installer') diff --git a/installer/mod.ts b/installer/mod.ts index 927485342..c38f1dbd4 100644 --- a/installer/mod.ts +++ b/installer/mod.ts @@ -227,7 +227,7 @@ export async function install( // ensure script that is being installed exists const ps = run({ - args: ["deno", "fetch", "--reload", moduleUrl], + args: [Deno.execPath, "fetch", "--reload", moduleUrl], stdout: "inherit", stderr: "inherit" }); diff --git a/installer/test.ts b/installer/test.ts index 02a1aade1..2309be443 100644 --- a/installer/test.ts +++ b/installer/test.ts @@ -16,7 +16,7 @@ const isWindows = Deno.platform.os === "win"; async function startFileServer(): Promise { fileServer = run({ args: [ - "deno", + Deno.execPath, "run", "--allow-read", "--allow-net", -- cgit v1.2.3