Skip to content

Commit

Permalink
馃懛 Updates Packaging Helper Scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
brucificus committed Aug 23, 2023
1 parent 2d86553 commit 57b7d38
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/lib/Get-ModuleExports.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ function Get-ModuleExports {
$results["DscResources"] += @($moduleInfo.ExportedDscResources)
$results["FormatFiles"] += @($moduleInfo.ExportedFormatFiles)
} finally {
$moduleInfo | Remove-Module -Force
if ($moduleInfo) {
$moduleInfo | Remove-Module -Force
}
}

return $results
Expand Down

0 comments on commit 57b7d38

Please sign in to comment.