2014-02-23 15:16:34 +01:00
|
|
|
#!/bin/bash
|
2014-12-01 17:01:47 +01:00
|
|
|
TEXTDOMAIN=la-tools
|
|
|
|
TEXTDOMAINDIR=./
|
|
|
|
name="Google Earth"
|
2014-12-01 20:15:04 +01:00
|
|
|
./apt-update.sh
|
2014-12-01 17:46:52 +01:00
|
|
|
./installed.sh google-chrome $name && exit
|
2014-02-23 15:16:34 +01:00
|
|
|
sources=$(cat /etc/apt/sources.list.d/google-earth.list)
|
|
|
|
if [ "$sources" != "deb http://dl.google.com/linux/earth/deb/ stable main" ]
|
|
|
|
then
|
|
|
|
echo "deb http://dl.google.com/linux/earth/deb/ stable main" > temp
|
2014-12-01 18:46:30 +01:00
|
|
|
sudo mv temp /etc/apt/sources.list.d/google-earth.list
|
2014-02-23 15:16:34 +01:00
|
|
|
wget -q https://dl-ssl.google.com/linux/linux_signing_key.pub -O- | sudo apt-key add -
|
|
|
|
rm temp
|
|
|
|
fi
|
|
|
|
sudo apt-get update
|
|
|
|
if sudo apt-get install google-earth-stable -y
|
|
|
|
then
|
2014-12-01 17:01:47 +01:00
|
|
|
zenity --info --title $"Success" --text $"$name successfully installed"
|
2014-02-23 15:16:34 +01:00
|
|
|
else
|
2014-12-01 17:01:47 +01:00
|
|
|
zenity --error --title $"Error" --text $"An error occurred while installing $name"
|
2014-02-23 15:16:34 +01:00
|
|
|
fi
|
|
|
|
# alternativ http://dl.google.com/dl/earth/client/current/google-earth-stable_current_i386.deb
|