Skip to content

Commit

Permalink
expanded Trap
Browse files Browse the repository at this point in the history
  • Loading branch information
lexiismadd committed Nov 24, 2022
1 parent 38979f2 commit 814c2d3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Standard-CT-Module/CT-PS-Standard.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ trap {
Write-Host "Install log (if used) : $($Install_log)"
Write-Host "**********************"
Write-Host ""
Remove-Module "$(Get-ChildItem $PSScriptRoot)\CT-PS-Standard.psm1" -Force
Remove-Item "$(Get-ChildItem $PSScriptRoot)\CT-PS-Standard.psm1" -Force
exit $exiterror
}

Expand Down

0 comments on commit 814c2d3

Please sign in to comment.