From 9d6b7c60ff475c1dd9562cd8e693d9bae6abdf12 Mon Sep 17 00:00:00 2001 From: qoijjj <129108030+qoijjj@users.noreply.github.com> Date: Mon, 13 May 2024 17:23:29 -0700 Subject: [PATCH] feat: opt out of homebrew analytics by default --- config/common/common-scripts.yml | 3 ++- config/scripts/homebrewanalyticsoptout.sh | 11 +++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 config/scripts/homebrewanalyticsoptout.sh diff --git a/config/common/common-scripts.yml b/config/common/common-scripts.yml index 511de04..eaef8f9 100644 --- a/config/common/common-scripts.yml +++ b/config/common/common-scripts.yml @@ -2,4 +2,5 @@ type: script scripts: - authselect.sh - setfilepermissions.sh - - disablesealertpopups.sh \ No newline at end of file + - disablesealertpopups.sh + - homebrewanalyticsoptout.sh \ No newline at end of file diff --git a/config/scripts/homebrewanalyticsoptout.sh b/config/scripts/homebrewanalyticsoptout.sh new file mode 100644 index 0000000..73ba1a3 --- /dev/null +++ b/config/scripts/homebrewanalyticsoptout.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env bash + +# Tell build process to exit if there are any errors. +set -oue pipefail + +# https://docs.brew.sh/Analytics +echo " + +HOMEBREW_NO_ANALYTICS=1 + +" >> /usr/etc/environment