le-dosvox: Changes if statement

Now this way allow to call the script in .desktop file without the auxiliary
script

Signed-off-by: Dalmon Ian Martins de Oliveira <dimo13.c3sl.ufpr.br>
parent f4ff0c9a
......@@ -49,13 +49,16 @@ function configureDosvox () {
USER_TO_INSTALL=$1
# Verifies if $USER_TO_INSTALL holds something
if [[ "$USER_TO_INSTALL" = "" || "$(grep $USER_TO_INSTALL /etc/passwd)" = "" ]]; then
if [[ "$USER_TO_INSTALL" = "" ]]; then
gksudo "install-dosvox $USER"
exit 0
elif [[ "$(grep $USER_TO_INSTALL /etc/passwd)" = "" ]]; then
zenity --error --title="Erro ao instalar" \
--text="O usuário não pode ser indentificado"
exit 1
fi
# Info message about installation process
zenity --info --title="Instalação do dosvox no linux educacional 5" \
--text="Esse programa vai auxiliar-te na instalação do dosvox no linux \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment