Skip to content
Snippets Groups Projects
Commit c02df72b authored by Niko Ehrenfeuchter's avatar Niko Ehrenfeuchter :keyboard:
Browse files

Replace shortcut as suggested by PSScriptAnalyzer

parent 3752c5e4
No related branches found
No related tags found
No related merge requests found
......@@ -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)]."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment