File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
lib/interface/cli/commands/hybrid Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -213,6 +213,10 @@ const initCmd = new Command({
213
213
const detectedProxyVars = detectProxy ( ) ;
214
214
httpProxy = httpProxy || detectedProxyVars . httpProxy ;
215
215
httpsProxy = httpsProxy || detectedProxyVars . httpsProxy ;
216
+ envVars = envVars || [ ] ;
217
+ if ( ! Array . isArray ( envVars ) ) {
218
+ envVars = [ envVars ] ;
219
+ }
216
220
if ( noQuestions ) {
217
221
// use defaults
218
222
kubeContextName = kubeContextName || getKubeContext ( kubeConfigPath ) ;
@@ -342,10 +346,12 @@ const initCmd = new Command({
342
346
}
343
347
344
348
if ( httpProxy ) {
345
- envVars = _ . merge ( envVars || { } , { http_proxy : httpProxy , HTTP_PROXY : httpProxy } ) ;
349
+ envVars . push ( `http_proxy=${ httpProxy } ` ) ;
350
+ envVars . push ( `HTTP_PROXY=${ httpProxy } ` ) ;
346
351
}
347
352
if ( httpsProxy ) {
348
- envVars = _ . merge ( envVars || { } , { https_proxy : httpsProxy , HTTPS_PROXY : httpsProxy } ) ;
353
+ envVars . push ( `https_proxy=${ httpsProxy } ` ) ;
354
+ envVars . push ( `HTTPS_PROXY=${ httpsProxy } ` ) ;
349
355
}
350
356
351
357
// save the answers for backup
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " codefresh" ,
3
- "version" : " 0.71.2 " ,
3
+ "version" : " 0.71.3 " ,
4
4
"description" : " Codefresh command line utility" ,
5
5
"main" : " index.js" ,
6
6
"preferGlobal" : true ,
You can’t perform that action at this time.
0 commit comments