2014-02-23 15:26:32 +01:00
|
|
|
#!/bin/bash
|
2014-12-01 17:01:47 +01:00
|
|
|
TEXTDOMAIN=la-tools
|
|
|
|
TEXTDOMAINDIR=./
|
|
|
|
name="Lame"
|
|
|
|
|
2014-02-23 15:26:32 +01:00
|
|
|
if dpkg -l lame|grep -q ii
|
|
|
|
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:26:32 +01:00
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
|
|
|
if sudo apt-get install lame
|
|
|
|
then
|
2014-12-01 17:01:47 +01:00
|
|
|
zenity --info --title $"Success" --text $"$name successfully installed"
|
2014-02-23 15:26:32 +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:26:32 +01:00
|
|
|
fis
|