mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 15:24:46 -05:00
fix(install): use first deno
executable on PATH rather than deno.exe (#10247)
This commit is contained in:
parent
06cd451d20
commit
0c5ecec8f6
1 changed files with 1 additions and 1 deletions
|
@ -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("%", "%%"))
|
||||
|
|
Loading…
Reference in a new issue