Skip to content

Commit

Permalink
Process files on git rename status with copy score (#409)
Browse files Browse the repository at this point in the history
* added regex for replace
  • Loading branch information
daltondhcp authored Jul 28, 2021
1 parent 3b85c1a commit 52a82b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/functions/Invoke-AzOpsPush.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@
$deleteSet += $filename
continue
}
if ($operation -in 'A', 'M', 'R') { $filename }
if ($operation -in 'A', 'M', 'R' -or $operation -match '^R0[0-9][0-9]$') { $filename }
}
if ($deleteSet) { $deleteSet = $deleteSet | Sort-Object }
if ($addModifySet) { $addModifySet = $addModifySet | Sort-Object }
Expand Down Expand Up @@ -243,4 +243,4 @@
$deploymentList | Select-Object $uniqueProperties -Unique | Sort-Object -Property TemplateParameterFilePath | New-AzOpsDeployment -WhatIf:$WhatIfPreference
}

}
}

0 comments on commit 52a82b1

Please sign in to comment.