Atualizacao Pilot_Install
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user