fix execution errors
This commit is contained in:
@@ -11,9 +11,9 @@ if (-not (Test-Path $sourceAllBat)) { Write-Error "Source file not found: $sourc
|
||||
$root = "A:\1 Amazon_Active_Projects"
|
||||
|
||||
$specs = @(
|
||||
@{ Name = 'UpdateSequences.bat'; Source = $sourceBat },
|
||||
@{ Name = 'UpdateSequences.ps1'; Source = $sourcePs1 },
|
||||
@{ Name = 'UpdateAllSequences.bat'; Source = $sourceAllBat }
|
||||
@{ Name = "UpdateSequences.bat"; Source = $sourceBat },
|
||||
@{ Name = "UpdateSequences.ps1"; Source = $sourcePs1 },
|
||||
@{ Name = "UpdateAllSequences.bat"; Source = $sourceAllBat }
|
||||
)
|
||||
|
||||
$grandTotal = 0
|
||||
@@ -35,11 +35,11 @@ foreach ($spec in $specs) {
|
||||
foreach ($t in $targets) {
|
||||
try {
|
||||
Copy-Item -Path $spec.Source -Destination $t.FullName -Force
|
||||
Write-Host "✓ Updated: $($t.FullName)" -ForegroundColor Green
|
||||
Write-Host " Updated: $($t.FullName)" -ForegroundColor Green
|
||||
$updated++
|
||||
}
|
||||
catch {
|
||||
Write-Host "✗ Failed to update: $($t.FullName)" -ForegroundColor Red
|
||||
Write-Host " Failed to update: $($t.FullName)" -ForegroundColor Red
|
||||
Write-Host " Error: $($_.Exception.Message)" -ForegroundColor Red
|
||||
$failed++
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user