From 1f3c285ccf07703860d46110aab0359b6a522d46 Mon Sep 17 00:00:00 2001 From: Mathias Buus Date: Mon, 20 Oct 2014 14:38:15 +0900 Subject: [PATCH] fix spaces in path issue --- npm/index.js | 2 +- npm/install.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/npm/index.js b/npm/index.js index 48b753f33b7c..1e82e73a758e 100644 --- a/npm/index.js +++ b/npm/index.js @@ -1,3 +1,3 @@ var fs = require('fs') var path = require('path') -module.exports = fs.readFileSync(path.join(__dirname, 'run.bat'), 'utf-8') \ No newline at end of file +module.exports = fs.readFileSync(path.join(__dirname, 'run.bat'), 'utf-8').slice(1,-1) \ No newline at end of file diff --git a/npm/install.js b/npm/install.js index f021c2f67763..1417c27d25b0 100755 --- a/npm/install.js +++ b/npm/install.js @@ -26,7 +26,7 @@ if (!paths[platform]) throw new Error('Unknown platform: '+platform) nugget(url, {target:name, dir:__dirname, resume:true}, function(err) { if (err) return onerror(err) - fs.writeFileSync(path.join(__dirname, 'run.bat'), paths[platform]) + fs.writeFileSync(path.join(__dirname, 'run.bat'), '"'+paths[platform]+'"') extract(path.join(__dirname, name), {dir:path.join(__dirname, 'dist')}, function(err) { if (err) return onerror(err) })