mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-11 22:34:24 +00:00
check for cmd not found in stderr
This commit is contained in:
parent
ace329ec6e
commit
0f6ea45f33
@ -221,8 +221,8 @@ Blockchain.prototype.checkPathLength = function() {
|
|||||||
|
|
||||||
Blockchain.prototype.isClientInstalled = function(callback) {
|
Blockchain.prototype.isClientInstalled = function(callback) {
|
||||||
let versionCmd = this.client.determineVersionCommand();
|
let versionCmd = this.client.determineVersionCommand();
|
||||||
this.runCommand(versionCmd, {}, (err, stdout, _stderr) => {
|
this.runCommand(versionCmd, {}, (err, stdout, stderr) => {
|
||||||
if (err || !stdout || stdout.indexOf("not found") >= 0) {
|
if (err || !stdout || stderr.indexOf("not found") >= 0 || stdout.indexOf("not found") >= 0) {
|
||||||
return callback('Geth not found');
|
return callback('Geth not found');
|
||||||
}
|
}
|
||||||
callback();
|
callback();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user