Fixed a bug in FromPowerShellCookbook

This commit is contained in:
Gal Szkolnik 2020-11-04 11:45:53 -05:00
부모 ac9c5ed352
커밋 d85aec0480
2개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제

파일 보기

@ -1 +0,0 @@
Edit-TextFile

파일 보기

@ -15,7 +15,7 @@ if( Get-Module PowerShellCookbook ) {
Import-Module PowerShellCookbook -Cmdlet Add-ObjectCollector
}
#
. Get-Command Add-ObjectCollector SilentlyContinue | ForEach-Object {
. Get-Command Add-ObjectCollector -ErrorAction SilentlyContinue | ForEach-Object {
Add-ObjectCollector
Get-Item function:/Add-ObjectCollector | Remove-Item
}