Created
January 7, 2016 02:33
-
-
Save calum-github/d9e799af5ed65ffa2f6d to your computer and use it in GitHub Desktop.
pre-install
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# 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" | |
fi | |
# 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" | |
fi | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment