Skip to content

Instantly share code, notes, and snippets.

@akkaash
Created November 2, 2013 06:06
Show Gist options
  • Save akkaash/7276079 to your computer and use it in GitHub Desktop.
Save akkaash/7276079 to your computer and use it in GitHub Desktop.
Install Google Chrome Shell Script
#!/bin/bash
if [ $(getconf LONG_BIT) = "64" ]
then
echo "64bit Detected" &&
echo "Installing Google Chrome" &&
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb &&
sudo dpkg -i google-chrome-stable_current_amd64.deb &&
rm -f google-chrome-stable_current_amd64.deb
else
echo "32bit Detected" &&
echo "Installing Google Chrome" &&
wget https://dl.google.com/linux/direct/google-chrome-stable_current_i386.deb &&
sudo dpkg -i google-chrome-stable_current_i386.deb &&
rm -f google-chrome-stable_current_i386.deb
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment