summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2021-04-18 13:38:40 -0400
committerGitHub <noreply@github.com>2021-04-18 19:38:40 +0200
commit0c5ecec8f60d4f1586e56b4e6e36ca973c555830 (patch)
treeee81d9ce17eb6d6fb5e92618fc5207757b4f0b51
parent06cd451d20cdf8864b6739aa13f10dde0aec5a8a (diff)
fix(install): use first `deno` executable on PATH rather than deno.exe (#10247)
-rw-r--r--cli/tools/installer.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/tools/installer.rs b/cli/tools/installer.rs
index 7547437a3..747d9cbc0 100644
--- a/cli/tools/installer.rs
+++ b/cli/tools/installer.rs
@@ -55,7 +55,7 @@ fn generate_executable_file(
) -> Result<(), AnyError> {
let args: Vec<String> = args.iter().map(|c| format!("\"{}\"", c)).collect();
let template = format!(
- "% generated by deno install %\n@deno.exe {} %*\n",
+ "% generated by deno install %\n@deno {} %*\n",
args
.iter()
.map(|arg| arg.replace("%", "%%"))