Skip to content

Commit

Permalink
fixing a bug where debugger wouldn't launch properly if spaces were c…
Browse files Browse the repository at this point in the history
…ontained in the directory path
  • Loading branch information
rickyc committed Mar 27, 2015
1 parent 3b7bd74 commit 63f3077
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packager/packager.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ if (!fs.existsSync(path.resolve(__dirname, '..', 'node_modules'))) {
process.exit();
}

var exec = require('child_process').exec;
var execFile = require('child_process').execFile;
var ReactPackager = require('./react-packager');
var blacklist = require('./blacklist.js');
var connect = require('connect');
Expand Down Expand Up @@ -136,7 +136,7 @@ function getDevToolsLauncher(options) {
var debuggerURL = 'http://localhost:' + options.port + '/debugger-ui';
var script = 'launchChromeDevTools.applescript';
console.log('Launching Dev Tools...');
exec(path.join(__dirname, script) + ' ' + debuggerURL, function(err, stdout, stderr) {
execFile(path.join(__dirname, script), [debuggerURL], function(err, stdout, stderr) {
if (err) {
console.log('Failed to run ' + script, err);
}
Expand Down

0 comments on commit 63f3077

Please sign in to comment.