Skip to content

Commit

Permalink
Merge pull request #252 from foxylion/bugfix/251
Browse files Browse the repository at this point in the history
Fix console output when running auth code
  • Loading branch information
k8s-ci-robot committed May 29, 2019
2 parents f4304dd + 8cf2218 commit e6881db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/exec_auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ export class ExecAuth implements Authenticator {
if (exec.args) {
cmd = `${cmd} ${exec.args.join(' ')}`;
}
let opts: shell.ExecOpts;
let opts: shell.ExecOpts = { silent: true };
if (exec.env) {
const env = process.env;
exec.env.forEach((elt) => (env[elt.name] = elt.value));
opts = { env };
opts = { ...opts, env };
}
const result = this.execFn(cmd, opts);
if (result.code === 0) {
Expand Down

0 comments on commit e6881db

Please sign in to comment.