File tree Expand file tree Collapse file tree 1 file changed +6
-12
lines changed
Expand file tree Collapse file tree 1 file changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -2129,19 +2129,13 @@ $(OUT_DIR):
21292129 env = JSON . parse ( JSON . stringify ( rawEnv ) ) ;
21302130
21312131 // override target env var
2132- const targetName = this . getCurrentTarget ( ) . toLowerCase ( ) ;
2132+ const targetName = this . getCurrentTarget ( ) ;
21332133 for ( const key in env ) {
2134- if ( typeof env [ key ] == 'object' &&
2135- Array . isArray ( env [ key ] ) == false &&
2136- key === targetName ) {
2137- try {
2138- const targetObj = env [ key ] ;
2139- for ( const var_name in targetObj ) {
2140- env [ var_name ] = targetObj [ var_name ] ;
2141- }
2142- } catch ( error ) {
2143- // nothing todo
2144- }
2134+ if ( typeof env [ key ] == 'object' && ! Array . isArray ( env [ key ] ) &&
2135+ key . toLowerCase ( ) === targetName . toLowerCase ( ) ) {
2136+ const targetEnv = env [ key ] ;
2137+ for ( const k in targetEnv )
2138+ env [ k ] = targetEnv [ k ] ;
21452139 }
21462140 }
21472141
You can’t perform that action at this time.
0 commit comments