We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa6e2e3 commit b71235eCopy full SHA for b71235e
src/gcp_auth.ts
@@ -66,13 +66,12 @@ export class GoogleCloudPlatformAuth implements Authenticator {
66
if (!cmd) {
67
throw new Error('Token is expired!');
68
}
69
- const cmdPath = config['cmd-path'];
70
const args = config['cmd-args'] ? config['cmd-args'].split(' ') : [];
71
// TODO: Cache to file?
72
// TODO: do this asynchronously
73
let output: any;
74
try {
75
- output = proc.execFileSync(cmdPath, args);
+ output = proc.execFileSync(cmd, args);
76
} catch (err) {
77
throw new Error('Failed to refresh token: ' + (err as Error).message);
78
0 commit comments