Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
# Author: Calum Hunter
# Date: 06/01/2016
# Version: 0.2
# Pre-install for Chrome Preferences
# Remove the existing preferences in the
# System user template if they exist
# Also remove the Google Master Preferences
# If it exists so that we can install a clean copy
# Remove Existing Master Preferences File if it exists
if [ -r "/Library/Google/Google Chrome Master Preferences" ]; then
rm -rf "/Library/Google/Google Chrome Master Preferences"
# Remove Existing User Template Preferences
if [ -d "/System/Library/User Template/English.lproj/Library/Application Support/Google/Chrome" ]; then
rm -rf "/System/Library/User Template/English.lproj/Library/Application Support/Google/Chrome"
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment