Skip to content

Commit 289be4b

Browse files
committed
check for cmd not found in stderr
1 parent a7a6a62 commit 289be4b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/cmds/blockchain/blockchain.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,8 @@ Blockchain.prototype.checkPathLength = function() {
193193

194194
Blockchain.prototype.isClientInstalled = function(callback) {
195195
let versionCmd = this.client.determineVersionCommand();
196-
this.runCommand(versionCmd, {}, (err, stdout, _stderr) => {
197-
if (err || !stdout || stdout.indexOf("not found") >= 0) {
196+
this.runCommand(versionCmd, {}, (err, stdout, stderr) => {
197+
if (err || !stdout || stderr.indexOf("not found") >= 0 || stdout.indexOf("not found") >= 0) {
198198
return callback('Geth not found');
199199
}
200200
callback();

0 commit comments

Comments
 (0)