Inline variables

This commit is contained in:
Alexander Karatarakis 2017-02-24 15:17:18 -08:00
parent beb1250fe4
commit 8f89f41a06

View File

@ -4,9 +4,7 @@ param(
)
$scriptsDir = split-path -parent $MyInvocation.MyCommand.Definition
$programFiles32 = & $scriptsDir\getProgramFiles32bit.ps1
$programFilesP = & $scriptsDir\getProgramFilesPlatformBitness.ps1
$CandidateProgramFiles = $programFiles32, $programFilesP
$CandidateProgramFiles = $(& $scriptsDir\getProgramFiles32bit.ps1), $(& $scriptsDir\getProgramFilesPlatformBitness.ps1)
# Windows 10 SDK
foreach ($ProgramFiles in $CandidateProgramFiles)