diff --git a/Updater/Update-Service.ps1 b/Updater/Update-Service.ps1 index ddcb850a090a8ca1363bd01135682b840ec9b638..2e15256f511ecd551779fac94afddd2c557bc65b 100644 --- a/Updater/Update-Service.ps1 +++ b/Updater/Update-Service.ps1 @@ -247,7 +247,7 @@ function Create-Backup { $BaseDir = Split-Path -Parent $FileName # assemble a timestamp string like "2017-12-04T16.41.35" - $BakTimeStamp = Get-Date -Format s | foreach {$_ -replace ":", "."} + $BakTimeStamp = Get-Date -Format s | ForEach-Object {$_ -replace ":", "."} $BakName = "$($FileWithoutSuffix)_pre-$($BakTimeStamp)$($FileSuffix)" Log-Info "Creating backup of [$($FileName)] as [$($BaseDir)\$($BakName)]."