mirror of
				https://github.com/espressif/esp-idf.git
				synced 2025-11-03 22:08:28 +00:00 
			
		
		
		
	Initialize $envvars_array to an empty list.
				
					
				
			With strict debugging, i.e. `Set-PSDebug -strict`, execution of export.ps1 will
report the following error:
```
The variable '$envars_array' cannot be retrieved because it has not been set.
At C:\path\to\export.ps1:15 char:1
+ $envars_array # will be filled like:
+ ~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (envars_array:String) [], RuntimeException
    + FullyQualifiedErrorId : VariableIsUndefined
```
Closes https://github.com/espressif/esp-idf/pull/7819
			
			
This commit is contained in:
		
				
					committed by
					
						
						Roland Dobai
					
				
			
			
				
	
			
			
			
						parent
						
							98d34e5f6d
						
					
				
				
					commit
					35a949ea66
				
			@@ -12,7 +12,7 @@ $OLD_PATH = $env:PATH.split($S) | Select-Object -Unique # array without duplicat
 | 
			
		||||
$envars_raw = python $IDF_PATH/tools/idf_tools.py export --format key-value
 | 
			
		||||
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } # if error
 | 
			
		||||
 | 
			
		||||
$envars_array # will be filled like:
 | 
			
		||||
$envars_array = @() # will be filled like:
 | 
			
		||||
#               [
 | 
			
		||||
#                    [vname1, vval1], [vname2, vval2], ...
 | 
			
		||||
#               ]
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user