mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 12:45:47 +00:00
Add '-Force' to Move-Item to fix the GitHub workflow (#19262)
This commit is contained in:
1 parent
118db90626
commit
25f7bbc9c2
1 file changed
+3
-3
@@ -117,20 +117,20 @@ jobs:
|
||||
Write-Verbose -Verbose "Create PR Windows == $createPrWin"
|
||||
|
||||
$createPrLinux = ShouldCreatePR $currentLinuxFile $newLinuxFile
|
||||
Write-Verbose -Verbose "Create PR Windows == $createPrLinux"
|
||||
Write-Verbose -Verbose "Create PR Linux == $createPrLinux"
|
||||
|
||||
$createPr = $createPrWin -or $createPrLinux
|
||||
Write-Verbose -Verbose "Create PR == $createPr"
|
||||
|
||||
if ($createPrWin) {
|
||||
Move-Item $newWinFile $currentWinFile -Verbose
|
||||
Move-Item $newWinFile $currentWinFile -Verbose -Force
|
||||
}
|
||||
else {
|
||||
Remove-Item $newWinFile -Verbose
|
||||
}
|
||||
|
||||
if ($createPrLinux) {
|
||||
Move-Item $newLinuxFile $currentLinuxFile -Verbose
|
||||
Move-Item $newLinuxFile $currentLinuxFile -Verbose -Force
|
||||
}
|
||||
else {
|
||||
Remove-Item $newLinuxFile -Verbose
|
||||
|
||||
Reference in new issue
Block a user