mirror of https://github.com/embarklabs/embark.git
extract node name and version (so it displays just like in 2.6.0)
This commit is contained in:
parent
044759ef52
commit
9d261472f9
|
@ -216,7 +216,11 @@ class Engine {
|
|||
if (err) {
|
||||
return cb({name: "Ethereum node (version unknown)", status: 'on'});
|
||||
}
|
||||
return cb({name: version, status: 'on'});
|
||||
let nodeName = version.split("/")[0];
|
||||
let versionNumber = version.split("/")[1].split("-")[0];
|
||||
let name = nodeName + " " + versionNumber + " (Ethereum)";
|
||||
|
||||
return cb({name: name, status: 'on'});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue