Skip to content

Commit e4c3a99

Browse files
committed
Revert "Don't pollute the caller's stack with environment variables when directly opening a session from the terminal."
This reverts commit 1f668a5. This behaviour has been out in the wild for too long now and is too late to change.
1 parent 91cf4ad commit e4c3a99

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/PSAppDeployToolkit/Public/Open-ADTSession.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ function Open-ADTSession
524524
}
525525

526526
# Export the environment table to variables within the caller's scope.
527-
if ($firstSession -and !$noExitOnClose)
527+
if ($firstSession)
528528
{
529529
Export-ADTEnvironmentTableToSessionState -SessionState $SessionState
530530
}

0 commit comments

Comments
 (0)