mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-02-23 12:38:18 +00:00
check for cmd not found in stderr
This commit is contained in:
parent
a7a6a62edc
commit
289be4b8a4
@ -193,8 +193,8 @@ Blockchain.prototype.checkPathLength = function() {
|
||||
|
||||
Blockchain.prototype.isClientInstalled = function(callback) {
|
||||
let versionCmd = this.client.determineVersionCommand();
|
||||
this.runCommand(versionCmd, {}, (err, stdout, _stderr) => {
|
||||
if (err || !stdout || stdout.indexOf("not found") >= 0) {
|
||||
this.runCommand(versionCmd, {}, (err, stdout, stderr) => {
|
||||
if (err || !stdout || stderr.indexOf("not found") >= 0 || stdout.indexOf("not found") >= 0) {
|
||||
return callback('Geth not found');
|
||||
}
|
||||
callback();
|
||||
|
Loading…
x
Reference in New Issue
Block a user