Skip to content

Commit

Permalink
Less warnings on module loading
Browse files Browse the repository at this point in the history
  • Loading branch information
wild-devops committed Nov 26, 2021
1 parent 5ff5bc3 commit cb3a8d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pwshake.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ if (Test-Path $PSScriptRoot\pwshake\pwshake.psd1) {
if (-not (Get-Module -Name pwshake -ListAvailable | Where-Object Version -eq $version)) {
Install-Module -Name pwshake -Repository PSGallery -RequiredVersion $version -Force -Scope CurrentUser | Out-Null
}
Import-Module -Name pwshake -RequiredVersion $version -Force -Global -DisableNameChecking
Import-Module -Name pwshake -RequiredVersion $version -Force -Global -DisableNameChecking -WarningAction Ignore
}

$params = @{
Expand Down
2 changes: 1 addition & 1 deletion pwshake/scripts/Build-Context.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function Build-Context {
}

$context.types | ForEach-Object type | ForEach-Object {
Add-Type -IgnoreWarnings -TypeDefinition $_ -Language CSharp
Add-Type -IgnoreWarnings -TypeDefinition $_ -Language CSharp -WarningAction Ignore
}

return $context
Expand Down

0 comments on commit cb3a8d5

Please sign in to comment.