diff --git a/install.js b/install.js index be5a3d427..893daaf90 100644 --- a/install.js +++ b/install.js @@ -71,7 +71,7 @@ async.series([ function checkPython2Exists(callback) { exec('which python2', function (error) { - if (error !== null) { + if (!error) { pythonExecutable = 'python2'; callback(); return;