summaryrefslogtreecommitdiff
path: root/installer
diff options
context:
space:
mode:
authorYoshiya Hinosawa <stibium121@gmail.com>2019-07-29 17:46:21 +0900
committerRyan Dahl <ry@tinyclouds.org>2019-07-29 08:46:21 +0000
commitb76007d25caf2cd9325813149a907c1e51728fca (patch)
treecc5faafb3985178f19f96bc9d5bd3d4198133346 /installer
parent44efefbda6d30edc602257c1a2501259e7ef9626 (diff)
refactor: use Deno.execPath where possible (denoland/deno_std#548)
Original: https://github.com/denoland/deno_std/commit/287b0a9cd259952387739405152e031e9abcdb63
Diffstat (limited to 'installer')
-rw-r--r--installer/mod.ts2
-rw-r--r--installer/test.ts2
2 files changed, 2 insertions, 2 deletions
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<void> {
fileServer = run({
args: [
- "deno",
+ Deno.execPath,
"run",
"--allow-read",
"--allow-net",