le-dosvox: Removes all '||' from function configureDosvox

Signed-off-by: Dalmon Ian Martins de Oliveira <dimo13.c3sl.ufpr.br>
parent 15874b8a
......@@ -29,18 +29,18 @@ function configureDosvox () {
DESKTOP="Área de Trabalho"
sed -e "s/${VAR1}/${VAR2}/" -e "s/${VAR3}/${VAR3}12/" \
-e "s/${VAR4}/${VAR4}29/" \
-i /home/$1/.wine/drive_c/winvox/dosvox.ini ||
cp "/home/$1/$DESKTOP/Dosvox.desktop" /home/$1 ||
mv "/home/$1/$DESKTOP/Dosvox.lnk" "/home/$1/$DESKTOP/.Dosvox.lnk" ||
sed -i "s\/${1}/\/dosvox_user/\ " /home/$USER_TO_INSTALL/Dosvox.desktop ||
-i /home/$1/.wine/drive_c/winvox/dosvox.ini
cp "/home/$1/$DESKTOP/Dosvox.desktop" /home/$1
mv "/home/$1/$DESKTOP/Dosvox.lnk" "/home/$1/$DESKTOP/.Dosvox.lnk"
sed -i "s\/${1}/\/dosvox_user/\ " /home/$USER_TO_INSTALL/Dosvox.desktop
cp /home/$1/.wine/drive_c/winvox/dosvox.ini \
/home/$1/.wine/drive_c/windows/dosvox.ini ||
mkdir $VAR5/Área\ de\ Trabalho ||
cp /home/$1/Dosvox.desktop "$VAR5/$DESKTOP" ||
cp -R /home/$1/.wine $VAR5 ||
/home/$1/.wine/drive_c/windows/dosvox.ini
mkdir $VAR5/Área\ de\ Trabalho
cp /home/$1/Dosvox.desktop "$VAR5/$DESKTOP"
cp -R /home/$1/.wine $VAR5
cp/home/$1/.local/share/icons/hicolor/32x32/apps/150E_dosvox.0.png \
$VAR5/.local/share/icons/hicolor/32x32/apps ||
chown -Rf dosvox_user:dosvox_user $VAR5/.wine ||
$VAR5/.local/share/icons/hicolor/32x32/apps
chown -Rf dosvox_user:dosvox_user $VAR5/.wine
chown dosvox_user:dosvox_user "$VAR5/$DESKTOP/Dosvox.desktop"
if [[ "$?" != "0" ]]; then
......@@ -56,7 +56,7 @@ USER_TO_INSTALL=$1
# Verifies if $USER_TO_INSTALL holds something
if [[ "$USER_TO_INSTALL" = "" ]]; then
gksudo "install-dosvox $USER"
gksudo "/usr/bin/install-dosvox.sh $USER"
exit 0
elif [[ "$(grep $USER_TO_INSTALL /etc/passwd)" = "" ]]; then
......@@ -105,7 +105,7 @@ do dosvox."
gksudo -u $USER_TO_INSTALL "wine /home/$USER_TO_INSTALL/le-dosvox/dv45-setup.exe"
# Modify some lines on dosvox configuration file
configuredosvox $USER_TO_INSTALL | zenity --progress --pulsate \
configureDosvox $USER_TO_INSTALL | zenity --progress --pulsate \
--text="Completando a instalação, por favor aguarde" --title="Terminando a instalação"
# Displays mensage saying the installation is completed
......
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