Skip to content

Commit

Permalink
Sometimes the SDK is invalid.
Browse files Browse the repository at this point in the history
  • Loading branch information
mattleibow committed Aug 17, 2024
1 parent 969a41c commit 34c6d7b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/install-android-sdk.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ function Get-SdkManager {
$cmdline | Get-ChildItem | ForEach-Object {
Write-Host "${Indent} $_"
}
} else {
Write-Host "${Indent} No command line tools found."
return ""
}

Write-Host "${Indent} Selecting the latest command line tools..."
Expand Down Expand Up @@ -63,6 +66,9 @@ function Get-Adb {
$platformtools = Join-Path "$SdkPath" "platform-tools"
if (Test-Path $platformtools) {
Write-Host "${Indent} Found platform tools: $platformtools"
} else {
Write-Host "${Indent} No platform tools found."
return ""
}

$adbExt = if (-not $IsMacOS -and -not $IsLinux) { ".exe" } else { "" }
Expand Down

0 comments on commit 34c6d7b

Please sign in to comment.