Skip to content

Commit 1bbee4a

Browse files
authored
Fix .gitlab-ci-local-env array options (#1710)
* Make sure .gitlab-ci-local-env keys that are arrays gets parsed correctly * Fix * Fix shit * Fix * Fix * Remove
1 parent b54c5eb commit 1bbee4a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/argv.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,8 @@ export class Argv {
170170
}
171171

172172
get remoteVariables (): string[] {
173-
return this.map.get("remoteVariables");
173+
const val = this.map.get("remoteVariables") ?? [];
174+
return typeof val == "string" ? val.split(" ") : val;
174175
}
175176

176177
get variable (): {[key: string]: string} {

0 commit comments

Comments
 (0)