Skip to content

Commit 2885d9a

Browse files
v0.6.1
1 parent bf5586c commit 2885d9a

3 files changed

Lines changed: 7 additions & 1 deletion

File tree

PSRemoteOperations.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
RootModule = 'PSRemoteOperations.psm1'
99

1010
# Version number of this module.
11-
ModuleVersion = '0.6.0'
11+
ModuleVersion = '0.6.1'
1212

1313
# Supported PSEditions
1414
CompatiblePSEditions = @("Desktop")

PSRemoteOperations.psm1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,8 @@ Function Invoke-PSRemoteOperation {
235235
($Raw | Select-Object -skip 1 | Select-Object -SkipLast 1 ).Foreach( {$resultData += "$_`n"})
236236

237237
$resultData += "Completed = '$completed'`n"
238+
#replace any variables in the errormessage with escaped literals
239+
$errormsg = $errormsg.Replace('$','`$')
238240
$resultData += "Error = $errormsg`n"
239241
$resultdata += "Date = '$((Get-Date).toUniversalTime()) UTC'`n"
240242

changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Change Log for PSRemoteOperations
22

3+
## v0.6.1
4+
5+
+ Fixed a bug with error messages when they include a variable name with the $ symbol.
6+
37
## v0.6.0
48

59
+ Added support for CMS protected files. (Issue #3)

0 commit comments

Comments
 (0)