Skip to content

Commit

Permalink
Merge pull request #4 from paulirish/execsync
Browse files Browse the repository at this point in the history
execSync to sync-exec for node v0.12+ compatibility
  • Loading branch information
jlfwong committed Jan 13, 2016
2 parents ee9c4c0 + 66829e3 commit 8813eaa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions bin/chrome2calltree.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ var fs = require("fs");

var argparse = require("argparse");
var temp = require("temp");
var execSync = require("execSync");
var exec = require('sync-exec');

// Clean up temporary files on exit
temp.track();
Expand Down Expand Up @@ -74,8 +74,8 @@ var launchKCacheGrind = function(logpath) {
var commands = ['qcachegrind', 'kcachegrind'];
for (var i = 0; i < commands.length; i++) {
var cmd = commands[i];
if (execSync.exec('which ' + cmd).code === 0) {
execSync.run(cmd + ' ' + outStream.path);
if (exec('which ' + cmd).status === 0) {
exec(cmd + ' ' + outStream.path);
found = true;
break;
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"argparse": "~0.1.15",
"lodash": "~2.3.0",
"underscore.string": "~2.3.3",
"execSync": "~1.0.1",
"sync-exec": "~0.6.2",
"temp": "~0.6.0"
},
"license": "MIT",
Expand Down

0 comments on commit 8813eaa

Please sign in to comment.