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 5bd0d92 commit c018ad8Copy full SHA for c018ad8
src/gcp_auth.ts
@@ -66,7 +66,14 @@ export class GoogleCloudPlatformAuth implements Authenticator {
66
if (!cmd) {
67
throw new Error('Token is expired!');
68
}
69
- const args = config['cmd-args'] ? config['cmd-args'].split(' ') : [];
+ const args = (config['cmd-args'] ? config['cmd-args'].split(' ') : []).map(
70
+ (arg: string): string => {
71
+ if (arg[0] == '\'' || arg[0] == '"') {
72
+ return arg.substring(1, arg.length-1);
73
+ }
74
+ return arg;
75
76
+ );
77
// TODO: Cache to file?
78
// TODO: do this asynchronously
79
let output: any;
0 commit comments