use correct variable when determing output from cmd
This commit is contained in:
parent
3d7c1c629c
commit
b9c0b8f9e5
|
@ -77,7 +77,7 @@ Blockchain.prototype.get_address = function() {
|
||||||
} else {
|
} else {
|
||||||
console.log("running: " + this.init_command());
|
console.log("running: " + this.init_command());
|
||||||
result = exec(this.init_command());
|
result = exec(this.init_command());
|
||||||
address = output.output.match(/{(\w+)}/)[1];
|
address = result.output.match(/{(\w+)}/)[1];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue