fix execution errors

This commit is contained in:
Nathan
2025-08-26 16:14:56 -06:00
parent c086f4b031
commit 146237466f
2 changed files with 486 additions and 5 deletions

View File

@@ -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++
}