aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorVictor Romero <romerosanchezv@gmail.com>2020-02-13 18:12:12 -0800
committerGitHub <noreply@github.com>2020-02-13 18:12:12 -0800
commit2523a19f70741a0383cd3bc8bedd8c5e52b9b54e (patch)
tree4b90dd8e4ed9c5e7a33270eac5dbcc938535b014 /scripts
parentad69a7fc8ee9324b95105cbfd89f2a615ad570af (diff)
downloadvcpkg-2523a19f70741a0383cd3bc8bedd8c5e52b9b54e.tar.gz
vcpkg-2523a19f70741a0383cd3bc8bedd8c5e52b9b54e.zip
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
Diffstat (limited to 'scripts')
-rw-r--r--scripts/bootstrap.ps15
-rw-r--r--scripts/bootstrap.sh12
2 files changed, 11 insertions, 6 deletions
diff --git a/scripts/bootstrap.ps1 b/scripts/bootstrap.ps1
index 3817fd691..1eaf1c598 100644
--- a/scripts/bootstrap.ps1
+++ b/scripts/bootstrap.ps1
@@ -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"
diff --git a/scripts/bootstrap.sh b/scripts/bootstrap.sh
index 0af6b37ff..bf8de7897 100644
--- a/scripts/bootstrap.sh
+++ b/scripts/bootstrap.sh
@@ -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 "" \ No newline at end of file
+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