File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 12
12
RootModule = ' PSParallelPipeline.psm1'
13
13
14
14
# Version number of this module.
15
- ModuleVersion = ' 1.0.2 '
15
+ ModuleVersion = ' 1.0.3 '
16
16
17
17
# Supported PSEditions
18
18
# CompatiblePSEditions = @()
Original file line number Diff line number Diff line change @@ -156,7 +156,10 @@ function Invoke-Parallel {
156
156
157
157
$key = [Convert ]::ToBase64String([Encoding ]::Unicode.GetBytes($varText.ToLower ()))
158
158
if (-not $usingParams.ContainsKey ($key )) {
159
- $usingParams.Add ($key , $ExecutionContext.SessionState.PSVariable.GetValue ($varPath ))
159
+ # Huge thanks to SeeminglyScience again and again! The function must use
160
+ # `$PSCmdlet.SessionState` instead of `$ExecutionContext.SessionState`
161
+ # to properly refer to the caller's scope.
162
+ $usingParams.Add ($key , $PSCmdlet.SessionState.PSVariable.GetValue ($varPath ))
160
163
}
161
164
}
162
165
You can’t perform that action at this time.
0 commit comments