Atualizacao Pilot_Install

This commit is contained in:
2026-07-21 15:04:44 -03:00
parent 7571447cbf
commit a664f2cbb7

View File

@@ -17,7 +17,7 @@ try {
$scriptPath = $MyInvocation.MyCommand.Path $scriptPath = $MyInvocation.MyCommand.Path
if ($scriptPath -and (Test-Path -LiteralPath $scriptPath)) { if ($scriptPath -and (Test-Path -LiteralPath $scriptPath)) {
Unblock-File -LiteralPath $scriptPath -ErrorAction SilentlyContinue Unblock-File -LiteralPath $scriptPath -ErrorAction SilentlyContinue
# ----- Remove-Item -LiteralPath "$scriptPath`:Zone.Identifier" -Force -ErrorAction SilentlyContinue Remove-Item -LiteralPath "$scriptPath`:Zone.Identifier" -Force -ErrorAction SilentlyContinue
} }
} catch {} } catch {}
@@ -145,7 +145,7 @@ try {
if (Test-Path -LiteralPath $WorkDir) { if (Test-Path -LiteralPath $WorkDir) {
Write-Info "Removendo diretório temporário antigo..." Write-Info "Removendo diretório temporário antigo..."
Remove-Item -LiteralPath $WorkDir -Recurse -Force -ErrorAction SilentlyContinue #Remove-Item -LiteralPath $WorkDir -Recurse -Force -ErrorAction SilentlyContinue
} }
Ensure-Dir $WorkDir Ensure-Dir $WorkDir