mirror of
https://github.com/VSCodium/vscodium.git
synced 2024-12-24 17:32:13 +03:00
18 lines
553 B
Bash
Executable File
18 lines
553 B
Bash
Executable File
# mobile.events.data.microsoft.com
|
|
# vortex.data.microsoft.com
|
|
TELEMETRY_URLS="[^/]+\.data\.microsoft\.com"
|
|
REPLACEMENT="s/${TELEMETRY_URLS}/0\.0\.0\.0/g"
|
|
|
|
#include common functions
|
|
. ../utils.sh
|
|
|
|
if [[ "${OS_NAME}" == "osx" ]]; then
|
|
if is_gnu_sed; then
|
|
grep -rl --exclude-dir=.git -E "${TELEMETRY_URLS}" . | xargs sed -i -E "${REPLACEMENT}"
|
|
else
|
|
grep -rl --exclude-dir=.git -E "${TELEMETRY_URLS}" . | xargs sed -i '' -E "${REPLACEMENT}"
|
|
fi
|
|
else
|
|
grep -rl --exclude-dir=.git -E "${TELEMETRY_URLS}" . | xargs sed -i -E "${REPLACEMENT}"
|
|
fi
|