Document environment variables of MacOS images (#2493)

* Document environment variables of MacOS images

* Change adnroid variables

* Apply reviews

* Remove some variables, fix headers

* Show link targets

* rename helper

* remove symlinks

* More links
This commit is contained in:
Sergey Dolin
2021-02-08 11:45:16 +05:00
committed by GitHub
parent dad0901d33
commit 6beed71b4f
5 changed files with 84 additions and 4 deletions

View File

@@ -30,3 +30,22 @@ function New-MDNewLine {
$newLineSymbol = [System.Environment]::NewLine
return $newLineSymbol * $Count
}
function Get-LinkTarget {
param (
[string] $inputPath
)
$link = Get-Item $inputPath | Select-Object -ExpandProperty Target
if ($link) {
return " -> $link"
}
return ""
}
function Get-PathWithLink {
param (
[string] $inputPath
)
$link = Get-LinkTarget($inputPath)
return "${inputPath}${link}"
}