Skip to content

Commit

Permalink
Initialize $envvars_array to an empty list.
Browse files Browse the repository at this point in the history
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 #7819
  • Loading branch information
cmumford authored and dobairoland committed Nov 12, 2021
1 parent df09290 commit 4975197
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion export.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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], ...
# ]
Expand Down

0 comments on commit 4975197

Please sign in to comment.