Skip to content

Instantly share code, notes, and snippets.

@feniix
Created May 24, 2014 16:28
Show Gist options
  • Save feniix/92a1f20eae13cde17821 to your computer and use it in GitHub Desktop.
Save feniix/92a1f20eae13cde17821 to your computer and use it in GitHub Desktop.
#!/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;
@jakenology
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment