mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
write a meteor.bat that works when there are spaces
This commit is contained in:
@@ -1112,7 +1112,7 @@ files.linkToMeteorScript = function (scriptLocation, linkLocation, platform) {
|
||||
var newScript = [
|
||||
"@echo off",
|
||||
// always convert to backslashes as always used on Windows
|
||||
"%~dp0\\" + scriptLocation.replace(/\//g, '\\') + " %*"
|
||||
"\"%~dp0\\" + scriptLocation.replace(/\//g, '\\') + "\" %*"
|
||||
].join(os.EOL);
|
||||
|
||||
files.writeFile(linkLocation, newScript, {encoding: "ascii"});
|
||||
|
||||
Reference in New Issue
Block a user