Skip to content

Commit

Permalink
Omit telemetry message when bootstrapping with -disableMetrics (mic…
Browse files Browse the repository at this point in the history
…rosoft#10061)

* Don't show telemetry message when passing --disableMetrics to bootstrap.sh

* Don't show telemetry message when passing -disableMetrics to bootstrap-vcpkg.bat
  • Loading branch information
vicroms authored Feb 14, 2020
1 parent ad69a7f commit 2523a19
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
5 changes: 4 additions & 1 deletion scripts/bootstrap.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -412,13 +412,16 @@ if ($ec -ne 0)
}
Write-Host "`nBuilding vcpkg.exe... done.`n"

Write-Host @"
if (-not $disableMetrics)
{
Write-Host @"
Telemetry
---------
vcpkg collects usage data in order to help us improve your experience. The data collected by Microsoft is anonymous. You can opt-out of telemetry by re-running bootstrap-vcpkg.bat with -disableMetrics.
Read more about vcpkg telemetry at docs/about/privacy.md
"@
}

Write-Verbose "Placing vcpkg.exe in the correct location"

Expand Down
12 changes: 7 additions & 5 deletions scripts/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,10 @@ mkdir -p "$buildDir"
rm -rf "$vcpkgRootDir/vcpkg"
cp "$buildDir/vcpkg" "$vcpkgRootDir/"

echo "Telemetry"
echo "---------"
echo "vcpkg collects usage data in order to help us improve your experience. The data collected by Microsoft is anonymous. You can opt-out of telemetry by re-running bootstrap-vcpkg.sh with -disableMetrics"
echo "Read more about vcpkg telemetry at docs/about/privacy.md"
echo ""
if ! [ "$vcpkgDisableMetrics" = "ON" ]; then
echo "Telemetry"
echo "---------"
echo "vcpkg collects usage data in order to help us improve your experience. The data collected by Microsoft is anonymous. You can opt-out of telemetry by re-running bootstrap-vcpkg.sh with -disableMetrics"
echo "Read more about vcpkg telemetry at docs/about/privacy.md"
echo ""
fi

0 comments on commit 2523a19

Please sign in to comment.