Skip to content

Commit 0a1d3d2

Browse files
committed
Fixed ReadEnvironmentVariables.ps1.
1 parent 622e10f commit 0a1d3d2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/PostSharp.Engineering.BuildTools/Resources/ReadEnvironmentVariables.ps1

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@
44
[CmdletBinding()]
55
param(
66
[Parameter(Mandatory)]
7-
[string]$SecretsPath
7+
[string]$envFilePath
88
)
99

10-
if (-not (Test-Path $SecretsPath))
10+
if (-not (Test-Path $envFilePath))
1111
{
12-
Write-Error "Secrets file not found: $SecretsPath"
12+
Write-Error "Environment file not found: $envFilePath"
1313
exit 1
1414
}
1515

1616
try
1717
{
18-
Write-Host "Reading secrets from: $SecretsPath" -ForegroundColor Cyan
19-
$secrets = Get-Content -Path $SecretsPath -Raw | ConvertFrom-Json
18+
Write-Host "Reading environment variables from: $envFilePath" -ForegroundColor Cyan
19+
$secrets = Get-Content -Path $envFilePath -Raw | ConvertFrom-Json
2020

2121
foreach ($property in $secrets.PSObject.Properties)
2222
{

0 commit comments

Comments
 (0)