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
}