mirror of
https://github.com/Findus23/la-tools.git
synced 2024-08-27 19:52:15 +02:00
Google Earth hinzugefügt
* eventuell nicht funktionstüchtig
This commit is contained in:
parent
3c409b86a4
commit
b2379e4dfc
1 changed files with 24 additions and 0 deletions
24
google-earth.sh
Executable file
24
google-earth.sh
Executable file
|
@ -0,0 +1,24 @@
|
|||
#!/bin/bash
|
||||
#apt-get update
|
||||
if dpkg -l google-earth-stable|grep -q ii
|
||||
then
|
||||
echo "Google Earth ist bereits installiert"
|
||||
zenity --info --title "Info" --text "Google Earth ist bereits installiert"
|
||||
exit
|
||||
fi
|
||||
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
|
||||
mv temp /etc/apt/sources.list.d/google-earth.list
|
||||
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
|
||||
zenity --info --title "Erfolg" --text "Google Earth wurde erfolgreich installiert"
|
||||
else
|
||||
zenity --error --title "Fehler" --text "Google Earth wurde nicht erfolgreich installiert"
|
||||
fi
|
||||
# alternativ http://dl.google.com/dl/earth/client/current/google-earth-stable_current_i386.deb
|
Loading…
Reference in a new issue