Skip to content

Instantly share code, notes, and snippets.

@amercier
Last active December 31, 2015 20:19
Show Gist options
  • Save amercier/8039499 to your computer and use it in GitHub Desktop.
Save amercier/8039499 to your computer and use it in GitHub Desktop.
#! /usr/bin/env bash
if [ "`whoami`" != "root" ]; then
echo "You must execute this script as root" >&2
exit 1
fi
echo ".----------------------------."
echo "| Google Chrome installation |"
echo "'----------------------------'"
aptitude install xdg-utils \
&& curl -# https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb > google-chrome-stable_current_amd64.deb \
&& dpkg -i google-chrome-stable_current_amd64.deb \
&& rm google-chrome-stable_current_amd64.deb \
&& echo ".--------------------------------------." \
&& echo "| Google Chrome installed successfully |" \
&& echo "'--------------------------------------'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment