Skip to content

Commit

Permalink
Add installed packages variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikhail Timofeev committed Jun 29, 2021
1 parent 907c885 commit f4e9c0f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions images/linux/scripts/helpers/Common.Helpers.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@ function Get-AndroidPackages {
return $androidPackages
}

function Get-InstalledAndroidPackages {
$androidSDKManagerPath = "/usr/local/lib/android/sdk/cmdline-tools/latest/bin/sdkmanager"
$androidPackages = & $androidSDKManagerPath --list_installed
return $androidPackages
}

function Get-EnvironmentVariable($variable) {
return [System.Environment]::GetEnvironmentVariable($variable)
}

0 comments on commit f4e9c0f

Please sign in to comment.