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"
|
|
|
|
|
2021-07-22 02:19:00 +05:30
|
|
|
#include common functions
|
|
|
|
. ../utils.sh
|
|
|
|
|
2020-09-20 14:26:06 -07:00
|
|
|
if [[ "$OS_NAME" == "osx" ]]; then
|
2021-07-22 02:19:00 +05:30
|
|
|
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 09:43:05 -04:00
|
|
|
else
|
|
|
|
grep -rl --exclude-dir=.git -E $TELEMETRY_URLS . | xargs sed -i -E $REPLACEMENT
|
|
|
|
fi
|