Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
rollback #66
  • Loading branch information
proxb committed Apr 8, 2016
1 parent 2d756ea commit 4e64913
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 11 deletions.
4 changes: 2 additions & 2 deletions PoshRSJob/PoshRSJob.psd1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

#
# PoshRSJob
# Version 1.5.6.0
# Version 1.5.6.1
#
# Boe Prox (c) 2014
# http://learn-powershell.net
Expand All @@ -14,7 +14,7 @@
ModuleToProcess = 'PoshRSJob.psm1'

# Version number of this module.
ModuleVersion = '1.5.6.0'
ModuleVersion = '1.5.6.1'

# ID used to uniquely identify this module
GUID = '9b17fb0f-e939-4a5c-b194-3f2247452972'
Expand Down
4 changes: 2 additions & 2 deletions PoshRSJob/Public/Start-RSJob.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -265,13 +265,13 @@ Function Start-RSJob {
End {
$SBParamCount = @(GetParamVariable -ScriptBlock $ScriptBlock).Count
If ($PSBoundParameters.ContainsKey('InputObject')) {
If ( ($ArgumentList) -and $ArgumentList.count -gt 0) {
If ($ArgumentList.Count -gt 0) {
$SBParamCount++
} Else {
$SBParamCount--
}
}
If ( ($ArgumentList) -and $ArgumentList.count -ne $SBParamCount -AND $IsPipeline) {
If ($ArgumentList.Count -ne $SBParamCount -AND $IsPipeline) {
Write-Verbose 'Will use $_ in Param() Block'
$Script:Add_ = $True
} Else {
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
PoshRSJob (1.5.6.0)
PoshRSJob (1.5.6.1)
===================

[![Build status](https://ci.appveyor.com/api/projects/status/svrd4ho4otugki24?svg=true)](https://ci.appveyor.com/project/proxb/poshrsjob)
Expand Down
7 changes: 1 addition & 6 deletions ReleaseNotes.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
---------
|1.5.6.0|
|1.5.6.1|
---------
* Fixed Issue #64 (HadErrors in PoshRS.PowerShell.RSJob throws errors in PowerShell V2)
* Fixed Issue #66 (Parameters not working in PowerShell V2)

---------
|1.5.6.0|
---------
* Fixed Issue #67 (Converted Add-Type code for C# classes to be created via Reflection for Nano server support)
* Fixed Issue #61 (Receive-RSJob not allowing -Job parameter input)
* Fixed Issue #63 (Replaced Global variables with Script scope)

0 comments on commit 4e64913

Please sign in to comment.