File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -288,7 +288,7 @@ function Set-TargetResource
288288
289289 $fileProperties.Add (' Value' , $fileContent )
290290
291- Set-Content @FileProperties
291+ Set-Content @fileProperties
292292}
293293
294294<#
Original file line number Diff line number Diff line change @@ -158,7 +158,7 @@ function Set-TargetResource
158158 $fileContent = Get-Content - Path $Path - Raw - ErrorAction SilentlyContinue
159159 $fileEncoding = Get-FileEncoding $Path
160160
161- $fileproperties = @ {
161+ $fileProperties = @ {
162162 Path = $Path
163163 NoNewline = $true
164164 Force = $true
@@ -184,7 +184,7 @@ function Set-TargetResource
184184 $Path , $Text )
185185
186186 # Add encoding parameter and value to the hashtable
187- $fileproperties .Add (' Encoding' , $Encoding )
187+ $fileProperties .Add (' Encoding' , $Encoding )
188188 }
189189 }
190190
@@ -204,9 +204,9 @@ function Set-TargetResource
204204 $fileContent = $fileContent -Replace $Search , $Text
205205 }
206206
207- $fileproperties .Add (' Value' , $fileContent )
207+ $fileProperties .Add (' Value' , $fileContent )
208208
209- Set-Content @fileproperties
209+ Set-Content @fileProperties
210210}
211211
212212<#
You can’t perform that action at this time.
0 commit comments