Created
November 2, 2013 06:06
-
-
Save akkaash/7276079 to your computer and use it in GitHub Desktop.
Install Google Chrome Shell Script
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 | |
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