Document environment variables of Win images (#2494)

* Document environment variables of Win 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:45 +05:00
committed by GitHub
parent 6beed71b4f
commit b169ce9de9
6 changed files with 86 additions and 3 deletions

View File

@@ -102,4 +102,23 @@ 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}"
}