2018-10-05 16:43:05 +03: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"
|
|
|
|
|
2021-07-21 23:49:00 +03:00
|
|
|
#include common functions
|
|
|
|
. ../utils.sh
|
|
|
|
|
2020-09-21 00:26:06 +03:00
|
|
|
if [[ "$OS_NAME" == "osx" ]]; then
|
2021-07-21 23:49:00 +03:00
|
|
|
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
|
2018-10-05 16:43:05 +03:00
|
|
|
else
|
|
|
|
grep -rl --exclude-dir=.git -E $TELEMETRY_URLS . | xargs sed -i -E $REPLACEMENT
|
|
|
|
fi
|