Skip to content

Commit aa3df4e

Browse files
author
Clemens Buchacher
committed
fix token refresh for GKE on Windows
A proper solution would be to pass command line arguments as an array. Unfortunately, this is not currently possible with shelljs. See also shelljs/shelljs#143. As a workaround, surround the command with quotes to at least fix commands with spaces. Closes #50.
1 parent eb8a8fe commit aa3df4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

node-client/src/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ export class KubeConfig {
130130
let expiration = Date.parse(expiry);
131131
if (expiration < Date.now()) {
132132
if (config['cmd-path']) {
133-
let cmd = config['cmd-path'];
133+
let cmd = '"' + config['cmd-path'] + '"';
134134
if (config['cmd-args']) {
135135
cmd = cmd + ' ' + config['cmd-args'];
136136
}

0 commit comments

Comments
 (0)