Skip to content

Commit

Permalink
Updated custom.build.ps1 +semver:skip
Browse files Browse the repository at this point in the history
  • Loading branch information
codaamok committed Apr 22, 2022
1 parent 3c504ee commit def382a
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions custom.build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,11 @@ task PreBuild {

task PostBuild {
Invoke-BuildClean -Path $BuildRoot\misc

Get-Module 'ConfigurationManager' -ListAvailable | ForEach-Object {
if ($_ -notmatch 'AdminConsole\\bin') {
Remove-Item -Path $_.ModuleBase -Recurse -Force -ErrorAction 'Stop'
if ($env:USER -ne 'runner') {
Get-Module 'ConfigurationManager' -ListAvailable | ForEach-Object {
if ($_ -notmatch 'AdminConsole\\bin') {
Remove-Item -Path $_.ModuleBase -Recurse -Force -ErrorAction 'Stop'
}
}
}
}
Expand All @@ -75,5 +76,9 @@ task PreRelease {
}

task PostRelease {

Get-Module 'ConfigurationManager' -ListAvailable | ForEach-Object {
if ($_ -notmatch 'AdminConsole\\bin') {
Remove-Item -Path $_.ModuleBase -Recurse -Force -ErrorAction 'Stop'
}
}
}

0 comments on commit def382a

Please sign in to comment.