Created
May 24, 2014 16:28
-
-
Save feniix/92a1f20eae13cde17821 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
# This script will download and install Google Chrome on a fresh installation of Mac OS X. | |
# Usage: curl -fkL gist.github.com/raw/4364590/install-chrome.sh | sh | |
curl -Lo /tmp/Google\ Chrome.dmg https://dl.google.com/chrome/mac/stable/GGRO/googlechrome.dmg; | |
hdiutil attach /tmp/Google\ Chrome.dmg; | |
ditto -rsrc /Volumes/Google\ Chrome/Google\ Chrome.app /Applications/Google\ Chrome.app; | |
hdiutil detach /Volumes/Google\ Chrome; | |
rm /tmp/Google\ Chrome.dmg; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Can you add support so standard users can run this script and have it go into the ~/Applications directory. You also should use the --silent flag after the curl command to shut it up.