We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 622e10f commit 0a1d3d2Copy full SHA for 0a1d3d2
1 file changed
src/PostSharp.Engineering.BuildTools/Resources/ReadEnvironmentVariables.ps1
@@ -4,19 +4,19 @@
4
[CmdletBinding()]
5
param(
6
[Parameter(Mandatory)]
7
- [string]$SecretsPath
+ [string]$envFilePath
8
)
9
10
-if (-not (Test-Path $SecretsPath))
+if (-not (Test-Path $envFilePath))
11
{
12
- Write-Error "Secrets file not found: $SecretsPath"
+ Write-Error "Environment file not found: $envFilePath"
13
exit 1
14
}
15
16
try
17
18
- Write-Host "Reading secrets from: $SecretsPath" -ForegroundColor Cyan
19
- $secrets = Get-Content -Path $SecretsPath -Raw | ConvertFrom-Json
+ Write-Host "Reading environment variables from: $envFilePath" -ForegroundColor Cyan
+ $secrets = Get-Content -Path $envFilePath -Raw | ConvertFrom-Json
20
21
foreach ($property in $secrets.PSObject.Properties)
22
0 commit comments