use correct variable when determing output from cmd

This commit is contained in:
Iuri Matias 2015-07-09 07:43:53 -04:00
parent 3d7c1c629c
commit b9c0b8f9e5
2 changed files with 2 additions and 2 deletions

View File

@ -77,7 +77,7 @@ Blockchain.prototype.get_address = function() {
} else {
console.log("running: " + this.init_command());
result = exec(this.init_command());
address = output.output.match(/{(\w+)}/)[1];
address = result.output.match(/{(\w+)}/)[1];
}
}