We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5f4dceb commit baf0dceCopy full SHA for baf0dce
1 file changed
src/Compile-SourceScript/Public/Compile-SourceScript.ps1
@@ -179,6 +179,7 @@ function Compile-SourceScript {
179
}
180
181
# Cleanup
182
+ Remove-Item $stdInFile -Force
183
Remove-Item $tempDir -Recurse -Force
184
185
if ($PSBoundParameters['SkipWrapper']) { "End of compilation." | Write-Host -ForegroundColor Yellow }
@@ -262,10 +263,6 @@ function Compile-SourceScript {
262
263
}catch {
264
Write-Error -Exception $_.Exception -Message $_.Exception.Message -Category $_.CategoryInfo.Category -TargetObject $_.TargetObject
265
}finally {
- # Cleanup
266
- if ($stdInFile) {
267
- Remove-Item -Path $stdInFile -Force
268
- }
269
"End of Compile-SourceScript." | Write-Host -ForegroundColor Cyan
270
271
0 commit comments