@@ -18,12 +18,12 @@ var fs = require('fs');
19// Make sure we get the right path even if we're executing from the symlinked
19// Make sure we get the right path even if we're executing from the symlinked
20// node_modules/.bin/ executable
20// node_modules/.bin/ executable
21−var pathToThisFile = fs.realpathSync(process.argv[1]);
21+var targetPath = fs.realpathSync(process.argv[1]);
23−download(pathToThisFile, function() {
23+download(targetPath, function() {
24 // Need double quotes and { shell: true } when there are spaces in the path on windows:
24 // Need double quotes and { shell: true } when there are spaces in the path on windows:
25 // https://github.com/nodejs/node/issues/7367#issuecomment-229721296
25 // https://github.com/nodejs/node/issues/7367#issuecomment-229721296
26 child_process
26 child_process
27− .spawn('"' + pathToThisFile + '"', process.argv.slice(2), { stdio: 'inherit', shell: true })
27+ .spawn('"' + targetPath + '"', process.argv.slice(2), { stdio: 'inherit', shell: true })
28 .on('exit', process.exit);
28 .on('exit', process.exit);