Skip to content

Commit 47afb3e

Browse files
committed
prevent blowups on startup due to boolean parsing in generated config
1 parent 54b7f67 commit 47afb3e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

eng/common/tools.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ function InitializeDotNetCli([bool]$install, [bool]$createSdkLocationFile) {
165165

166166
# Disable telemetry on CI.
167167
if ($ci) {
168-
$env:DOTNET_CLI_TELEMETRY_OPTOUT=1
168+
$env:DOTNET_CLI_TELEMETRY_OPTOUT=$true
169169
}
170170

171171
# Find the first path on %PATH% that contains the dotnet.exe
@@ -293,7 +293,7 @@ function InstallDotNet([string] $dotnetRoot,
293293
if ($runtime -eq "aspnetcore") { $runtimePath = $runtimePath + "\Microsoft.AspNetCore.App" }
294294
if ($runtime -eq "windowsdesktop") { $runtimePath = $runtimePath + "\Microsoft.WindowsDesktop.App" }
295295
$runtimePath = $runtimePath + "\" + $version
296-
296+
297297
$dotnetVersionLabel = "runtime toolset '$runtime/$architecture v$version'"
298298

299299
if (Test-Path $runtimePath) {

eng/common/tools.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ function InitializeDotNetCli {
123123

124124
# Disable telemetry on CI
125125
if [[ $ci == true ]]; then
126-
export DOTNET_CLI_TELEMETRY_OPTOUT=1
126+
export DOTNET_CLI_TELEMETRY_OPTOUT=true
127127
fi
128128

129129
# LTTNG is the logging infrastructure used by Core CLR. Need this variable set

0 commit comments

Comments
 (0)