diff options
| author | Adonais Romero González <[email protected]> | 2023-04-10 14:31:24 -0700 |
|---|---|---|
| committer | Adonais Romero González <[email protected]> | 2023-04-10 14:31:24 -0700 |
| commit | f28183b782d1f113492f6eea424172f2addaf565 (patch) | |
| tree | e1463bc03c612a629ddfaf0b253d4df3d2cf8fb0 /Build-AllSamples.ps1 | |
| parent | b9047602cf1d918e977e572f085df5bf973f9629 (diff) | |
Remove ? operators from build scripts to improve compatibility
Diffstat (limited to 'Build-AllSamples.ps1')
| -rw-r--r-- | Build-AllSamples.ps1 | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/Build-AllSamples.ps1 b/Build-AllSamples.ps1 index 2cf7f403..24113c5f 100644 --- a/Build-AllSamples.ps1 +++ b/Build-AllSamples.ps1 @@ -37,8 +37,8 @@ None. [CmdletBinding()] param( [string]$Samples = "", - [string[]]$Configurations = @([string]::IsNullOrEmpty($env:WDS_Configuration) ? ('Debug','Release') : $env:WDS_Configuration), - [string[]]$Platforms = @([string]::IsNullOrEmpty($env:WDS_Platform) ? ('x64','arm64') : $env:WDS_Platform), + [string[]]$Configurations = @(if ([string]::IsNullOrEmpty($env:WDS_Configuration)) { ('Debug', 'Release') } else { $env:WDS_Configuration }), + [string[]]$Platforms = @(if ([string]::IsNullOrEmpty($env:WDS_Platform)) { ('x64', 'arm64') } else { $env:WDS_Platform }), [string]$LogFilesDirectory = (Join-Path (Get-Location) "_logs"), [int]$ThrottleLimit ) @@ -56,13 +56,11 @@ $sampleSet = @{} foreach ($file in $solutionFiles) { $dir = (Get-Item $file).DirectoryName $dir_norm = $dir.Replace($root, '').Trim('\').Replace('\', '.').ToLower() - if($dir_norm -match ($Samples)) - { + if ($dir_norm -match ($Samples)) { Write-Verbose "`u{1F50E} Found and included sample [$dir_norm] at $dir" $sampleSet[$dir_norm] = $dir } - else - { + else { Write-Verbose "`u{1F50E} Found and excluded sample [$dir_norm] at $dir" } } |
