1
0
Fork 0
mirror of https://github.com/Findus23/la-tools.git synced 2024-08-27 19:52:15 +02:00
la-tools/opera.sh

22 lines
536 B
Bash
Raw Normal View History

2014-02-23 15:30:49 +01:00
#!/bin/bash
2014-12-01 17:01:47 +01:00
TEXTDOMAIN=la-tools
TEXTDOMAINDIR=./
name="Opera"
2014-09-04 17:19:43 +02:00
if dpkg -l | grep opera | grep ii
2014-02-23 15:30:49 +01:00
then
2014-12-01 17:01:47 +01:00
echo $"$name is already installed"
zenity --info --title $"Information" --text $"$name is already installed"
2014-02-23 15:30:49 +01:00
exit
fi
wget -O /tmp/opera.deb http://get.geo.opera.com/pub/opera/linux/1216/opera_12.16.1860_i386.deb
if dpkg -i /tmp/opera.deb -y
then
2014-12-01 17:01:47 +01:00
zenity --info --title $"Success" --text $"$name successfully installed"
2014-02-23 15:30:49 +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:30:49 +01:00
fi
rm /tmp/opera.deb