Skip to content

Commit c018ad8

Browse files
committed
Fix up generated code.
1 parent 5bd0d92 commit c018ad8

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/gcp_auth.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,14 @@ export class GoogleCloudPlatformAuth implements Authenticator {
6666
if (!cmd) {
6767
throw new Error('Token is expired!');
6868
}
69-
const args = config['cmd-args'] ? config['cmd-args'].split(' ') : [];
69+
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+
);
7077
// TODO: Cache to file?
7178
// TODO: do this asynchronously
7279
let output: any;

0 commit comments

Comments
 (0)