mirror of
https://github.com/Findus23/la-tools.git
synced 2024-08-27 19:52:15 +02:00
20 lines
535 B
Bash
Executable file
20 lines
535 B
Bash
Executable file
#!/bin/bash
|
|
TEXTDOMAIN=la-tools
|
|
TEXTDOMAINDIR=./
|
|
name="Anki"
|
|
|
|
if dpkg -l | grep anki | grep ii
|
|
then
|
|
echo $"$name is already installed"
|
|
zenity --info --title $"Information" --text $"$name is already installed"
|
|
exit
|
|
fi
|
|
wget -O /tmp/anki.deb http://ankisrs.net/download/mirror/anki-2.0.28.deb
|
|
apt-get install mplayer -y
|
|
if dpkg -i /tmp/anki.deb -y
|
|
then
|
|
zenity --info --title $"Success" --text $"$name successfully installed"
|
|
else
|
|
zenity --error --title $"Error" --text $"An error occurred while installing $name"
|
|
fi
|
|
rm /tmp/anki.deb
|