We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Exit-ADTInvocation
1 parent 81ef4e2 commit ae1ce07Copy full SHA for ae1ce07
1 file changed
src/PSAppDeployToolkit/Private/Exit-ADTInvocation.ps1
@@ -75,6 +75,7 @@ function Private:Exit-ADTInvocation
75
76
# Forcibly set the LASTEXITCODE so it's available if we're breaking
77
# or running Close-ADTSession from a PowerShell runspace, etc.
78
+ [System.Environment]::ExitCode = $ExitCode
79
$Global:LASTEXITCODE = $ExitCode
80
81
# If we're not to exit the shell (i.e. we're running from the command line),
0 commit comments