mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 18:31:15 +08:00
Omit telemetry message when bootstrapping with -disableMetrics
(#10061)
* Don't show telemetry message when passing --disableMetrics to bootstrap.sh * Don't show telemetry message when passing -disableMetrics to bootstrap-vcpkg.bat
This commit is contained in:
parent
ad69a7fc8e
commit
2523a19f70
@ -412,13 +412,16 @@ if ($ec -ne 0)
|
|||||||
}
|
}
|
||||||
Write-Host "`nBuilding vcpkg.exe... done.`n"
|
Write-Host "`nBuilding vcpkg.exe... done.`n"
|
||||||
|
|
||||||
Write-Host @"
|
if (-not $disableMetrics)
|
||||||
|
{
|
||||||
|
Write-Host @"
|
||||||
Telemetry
|
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.
|
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
|
Read more about vcpkg telemetry at docs/about/privacy.md
|
||||||
|
|
||||||
"@
|
"@
|
||||||
|
}
|
||||||
|
|
||||||
Write-Verbose "Placing vcpkg.exe in the correct location"
|
Write-Verbose "Placing vcpkg.exe in the correct location"
|
||||||
|
|
||||||
|
@ -263,8 +263,10 @@ mkdir -p "$buildDir"
|
|||||||
rm -rf "$vcpkgRootDir/vcpkg"
|
rm -rf "$vcpkgRootDir/vcpkg"
|
||||||
cp "$buildDir/vcpkg" "$vcpkgRootDir/"
|
cp "$buildDir/vcpkg" "$vcpkgRootDir/"
|
||||||
|
|
||||||
echo "Telemetry"
|
if ! [ "$vcpkgDisableMetrics" = "ON" ]; then
|
||||||
echo "---------"
|
echo "Telemetry"
|
||||||
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 "---------"
|
||||||
echo "Read more about vcpkg telemetry at docs/about/privacy.md"
|
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 ""
|
echo "Read more about vcpkg telemetry at docs/about/privacy.md"
|
||||||
|
echo ""
|
||||||
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user