Skip to content

Commit

Permalink
Merge pull request #37 from intergral/windows-env-var-comparison
Browse files Browse the repository at this point in the history
Fix env variable comparison for Windows
  • Loading branch information
ibalal-intergral authored Feb 12, 2024
2 parents 3a3b770 + 01e06cf commit 056ff0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions windows/observability-agent-autoconf.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ while ($true) {
{
$ans = Read-Host "Is there a service you want to enable log collection for? (y/n)" | ForEach-Object { $_.ToLower() }
}
elseif ($env:log_collection = $true) {
elseif ($env:log_collection -eq $true) {
$ans="y"
}
else
Expand Down Expand Up @@ -207,7 +207,7 @@ while ($true) {
{
$ans = Read-Host "Would you like to enable collection of open telemetry metrics and traces? (y/n)" | ForEach-Object { $_.ToLower() }
}
elseif ($env:otel_collection = $true) {
elseif ($env:otel_collection -eq $true) {
$ans="y"
}
else
Expand Down

0 comments on commit 056ff0b

Please sign in to comment.