Skip to content

Commit 0d4d150

Browse files
Robert Holtrjmholt
authored andcommitted
Add build error notification to build script
1 parent b63a4ef commit 0d4d150

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

PSCompatibilityCollector/build.ps1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,11 @@ function Publish-CrossCompatibilityModule
117117
if ($Clean)
118118
{
119119
Remove-Item -Force -Recurse $script:BinModDir -ErrorAction Ignore
120+
121+
if (Test-Path $script:BinModDir)
122+
{
123+
throw "'$script:BinModDir' still present, aborting build"
124+
}
120125
}
121126

122127
# Only build if the output directory does not exist

0 commit comments

Comments
 (0)