2018-10-05 09:43:05 -04:00
|
|
|
# dc.services.visualstudio.com
|
|
|
|
# vortex.data.microsoft.com
|
|
|
|
TELEMETRY_URLS="(dc\.services\.visualstudio\.com)|(vortex\.data\.microsoft\.com)"
|
|
|
|
REPLACEMENT="s/$TELEMETRY_URLS/0\.0\.0\.0/g"
|
|
|
|
|
2020-09-20 17:26:06 -04:00
|
|
|
if [[ "$OS_NAME" == "osx" ]]; then
|
2018-10-05 09:43:05 -04:00
|
|
|
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
|