Skip to content

Commit

Permalink
check if agent started successfully
Browse files Browse the repository at this point in the history
  • Loading branch information
playground committed Mar 22, 2023
1 parent b4e5135 commit a8a3d49
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hzn-cli",
"version": "0.4.27",
"version": "0.4.28",
"description": "Open Horizon CLI toolkit helps streamline the process of preparing node agents and perform tasks between orgs environments",
"main": "./build/index.js",
"bin": {
Expand Down
2 changes: 1 addition & 1 deletion src/common/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2248,7 +2248,7 @@ export class Utils {
observer.error(err);
}
});
child.stdout.pipe(process.stdout);
//child.stdout.pipe(process.stdout);
child.stdout.on('data', (data) => {
console.log(`-> ${data}`)
if(data.indexOf(`Run 'hzn agreement list' to view`) > 0 || data.indexOf(`agent started successfully`) > 0) {
Expand Down

0 comments on commit a8a3d49

Please sign in to comment.