From 49887ac2f3eeaf75369dd7bb26778d877669117e Mon Sep 17 00:00:00 2001 From: Boe Prox Date: Sat, 25 Jun 2016 22:44:17 -0500 Subject: [PATCH] Bug fixes Fixed #76 --- PoshRSJob/PoshRSJob.psd1 | 4 ++-- PoshRSJob/PoshRSJob.psm1 | 2 +- README.md | 2 +- ReleaseNotes.txt | 3 ++- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/PoshRSJob/PoshRSJob.psd1 b/PoshRSJob/PoshRSJob.psd1 index 029e794..5fefdbb 100644 --- a/PoshRSJob/PoshRSJob.psd1 +++ b/PoshRSJob/PoshRSJob.psd1 @@ -1,7 +1,7 @@  # # PoshRSJob -# Version 1.5.7.6 +# Version 1.5.7.7 # # Boe Prox (c) 2014 # http://learn-powershell.net @@ -14,7 +14,7 @@ ModuleToProcess = 'PoshRSJob.psm1' # Version number of this module. -ModuleVersion = '1.5.7.6' +ModuleVersion = '1.5.7.7' # ID used to uniquely identify this module GUID = '9b17fb0f-e939-4a5c-b194-3f2247452972' diff --git a/PoshRSJob/PoshRSJob.psm1 b/PoshRSJob/PoshRSJob.psm1 index 557cd59..e7073ca 100644 --- a/PoshRSJob/PoshRSJob.psm1 +++ b/PoshRSJob/PoshRSJob.psm1 @@ -56,7 +56,7 @@ $PoshRS_jobCleanup.PowerShell = [PowerShell]::Create().AddScript({ $job.InnerJob.dispose() $job.Completed = $True #Return type from Invoke() is a generic collection; need to verify the first index is not NULL - If (($Data.Count -gt 0) -AND (-NOT ($Null -eq $Data[0]))) { + If (($Data.Count -gt 0) -AND (-NOT ($Data.Count -eq 1 -AND $Null -eq $Data[0]))) { $job.output = $Data $job.HasMoreData = $True } diff --git a/README.md b/README.md index e9ef084..37ff742 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -PoshRSJob 1.5.7.6 +PoshRSJob 1.5.7.7 =================== [![Build status](https://ci.appveyor.com/api/projects/status/svrd4ho4otugki24?svg=true)](https://ci.appveyor.com/project/proxb/poshrsjob) [![Join the chat at https://gitter.im/proxb/PoshRSJob](https://badges.gitter.im/proxb/PoshRSJob.svg)](https://gitter.im/proxb/PoshRSJob?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) diff --git a/ReleaseNotes.txt b/ReleaseNotes.txt index 3707b3e..f9a830b 100644 --- a/ReleaseNotes.txt +++ b/ReleaseNotes.txt @@ -1,5 +1,5 @@ --------- -|1.5.7.5| +|1.5.7.7| --------- * Fixed Issue #69 (Module produces error if imported more than once (PS v2 only)) * Fixed Issue #64 (HadErrors in PoshRS.PowerShell.RSJob throws errors in PowerShell V2) @@ -9,3 +9,4 @@ * Fixed Issue #66 (Parameters don't work with PowerShell V2) * Fixed Issue #65 (Bug with v2 variable substitution - single-quoted strings get $var references replaced) * Fixed Issue #68 (ApartmentState Does Not Exist in Nano) +* Fixed Issue #76 (Jobs don't have output when using ADSI WinNT provider (Receive-RSJob))