1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-11 00:21:05 -05:00

Add @ for cleaner Batch files on Windows (#4764)

This commit is contained in:
trgwii 2020-04-16 07:42:09 +02:00 committed by GitHub
parent 5ac728a5f1
commit 42c421f49d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -48,7 +48,7 @@ fn generate_executable_file(
) -> Result<(), Error> { ) -> Result<(), Error> {
let args: Vec<String> = args.iter().map(|c| format!("\"{}\"", c)).collect(); let args: Vec<String> = args.iter().map(|c| format!("\"{}\"", c)).collect();
let template = format!( let template = format!(
"% generated by deno install %\ndeno.exe {} %*\n", "% generated by deno install %\n@deno.exe {} %*\n",
args.join(" ") args.join(" ")
); );
let mut file = File::create(&file_path)?; let mut file = File::create(&file_path)?;