diff --git a/bin/chrome2calltree.js b/bin/chrome2calltree.js index 6d4ccc3..ffa9ff1 100755 --- a/bin/chrome2calltree.js +++ b/bin/chrome2calltree.js @@ -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(); @@ -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; } diff --git a/package.json b/package.json index 39e3190..82bd20b 100644 --- a/package.json +++ b/package.json @@ -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",