Skip to content

The agent that grows with you

eap

ethernetb52f78229611
diff --git a/scripts/update-test/hermes-update-rehearsal.ps1 b/scripts/update-test/hermes-update-rehearsal.ps1
index f9ef561cdd1..35f25adaf57 100755
--- a/scripts/update-test/hermes-update-rehearsal.ps1
+++ b/scripts/update-test/hermes-update-rehearsal.ps1
@@ -167,7 +167,13 @@ function Invoke-GitCmd {
function Invoke-BackupTar {
param([string]$TarExe, [string[]]$TarArgs, [string]$Root, [string]$Label)
+
+
+ $old = $ErrorActionPreference
+ $ErrorActionPreference = 'Continue'
$output = & $TarExe @TarArgs 2>&1
+ $ErrorActionPreference = $old
+
if ($LASTEXITCODE -eq 0) { return }
$denied = $output | Where-Object { $_ -match 'Permission denied|Access is denied' }