File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,6 +12,13 @@ param(
1212 [string []]$BuildArgs # Arguments passed to `Build.ps1` within the container.
1313)
1414
15+ # Require PowerShell 7.5 or higher (run with pwsh, not powershell)
16+ if ($PSVersionTable.PSVersion -lt [Version ]' 7.5' )
17+ {
18+ Write-Error " This script requires PowerShell 7.5 or higher (run with 'pwsh', not 'powershell'). Current version: $ ( $PSVersionTable.PSVersion ) "
19+ exit 1
20+ }
21+
1522# ###
1623# These settings are replaced by the generate-scripts command.
1724$EngPath = ' eng'
Original file line number Diff line number Diff line change @@ -29,6 +29,13 @@ param(
2929 [string []]$BuildArgs # Arguments passed to `Build.ps1` within the container (or Claude prompt if -Claude is specified).
3030)
3131
32+ # Require PowerShell 7.5 or higher (run with pwsh, not powershell)
33+ if ($PSVersionTable.PSVersion -lt [Version ]' 7.5' )
34+ {
35+ Write-Error " This script requires PowerShell 7.5 or higher (run with 'pwsh', not 'powershell'). Current version: $ ( $PSVersionTable.PSVersion ) "
36+ exit 1
37+ }
38+
3239# ###
3340# These settings are replaced by the generate-scripts command.
3441$EngPath = ' eng'
@@ -196,8 +203,10 @@ function New-EnvJson
196203 }
197204
198205 $envVariables | ConvertTo-Json - Depth 10 | Set-Content - Path $jsonPath - Encoding UTF8
199- Write-Host " Created secrets file: $jsonPath " - ForegroundColor Cyan
200206
207+ # Print sorted list of environment variables being passed
208+ $sortedKeys = $envVariables.Keys | Sort-Object
209+ Write-Host " Environment variables: $ ( $sortedKeys -join ' , ' ) " - ForegroundColor Gray
201210
202211 return $jsonPath
203212}
@@ -327,7 +336,10 @@ function New-ClaudeEnvJson
327336 }
328337
329338 $claudeEnv | ConvertTo-Json - Depth 10 | Set-Content - Path $jsonPath - Encoding UTF8
330- Write-Host " Created Claude secrets file: $jsonPath " - ForegroundColor Cyan
339+
340+ # Print sorted list of environment variables being passed
341+ $sortedKeys = $claudeEnv.Keys | Sort-Object
342+ Write-Host " Environment variables: $ ( $sortedKeys -join ' , ' ) " - ForegroundColor Gray
331343
332344 return $jsonPath
333345}
You can’t perform that action at this time.
0 commit comments