vscodium/undo_telemetry.sh
Peter Squicciarini f805d740bb
Undo telemetry before build (#27)
Closes #26 

* Undo telemetry before build

* Update README to clarify telemetry disabling process
2018-10-05 09:43:05 -04:00

10 lines
404 B
Bash
Executable file

# 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"
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; 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