getAndroid.ps1: Silently continue if it cant remove the tmp folder

This commit is contained in:
Syer10 2021-03-25 16:47:30 -04:00
parent fd46727f8e
commit 1aa3b76934

View File

@ -3,7 +3,7 @@ if ($(Split-Path -Path (Get-Location) -Leaf) -eq "AndroidCompat" ) {
} }
Write-Output "Getting required Android.jar..." Write-Output "Getting required Android.jar..."
Remove-Item -Recurse -Force "tmp" | Out-Null Remove-Item -Recurse -Force "tmp" -ErrorAction SilentlyContinue | Out-Null
New-Item -ItemType Directory -Force -Path "tmp" | Out-Null New-Item -ItemType Directory -Force -Path "tmp" | Out-Null
$androidEncoded = (Invoke-WebRequest -Uri "https://android.googlesource.com/platform/prebuilts/sdk/+/3b8a524d25fa6c3d795afb1eece3f24870c60988/27/public/android.jar?format=TEXT").content $androidEncoded = (Invoke-WebRequest -Uri "https://android.googlesource.com/platform/prebuilts/sdk/+/3b8a524d25fa6c3d795afb1eece3f24870c60988/27/public/android.jar?format=TEXT").content