Skip to content

Commit

Permalink
add env vars back
Browse files Browse the repository at this point in the history
  • Loading branch information
playground committed Apr 21, 2023
1 parent 5f902a5 commit 83e6027
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
6 changes: 6 additions & 0 deletions build/common/src/utils.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/common/src/utils.js.map

Large diffs are not rendered by default.

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.5.9",
"version": "0.5.10",
"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
6 changes: 6 additions & 0 deletions src/common/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,12 @@ export class Utils {
configJson = json;
},
complete: () => {
const config = jsonfile.readFileSync(configFile);
const pEnv: any = process.env;
const org = config.org
Object.keys(org).forEach((key) => {
pEnv[key] = org[key]
})
this.proceedWithAutoInstall(setup)
.subscribe({
complete: () => {
Expand Down

0 comments on commit 83e6027

Please sign in to comment.