From e9b85bfd0082f38c478fbbe2f1545bd72a612790 Mon Sep 17 00:00:00 2001 From: Erickson Silva Date: Mon, 25 Apr 2016 10:45:51 -0300 Subject: [PATCH] Atualiza dict_update.sh para remover arquivos .description ao copiar para a pasta Bundles --- dict_update.sh | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/dict_update.sh b/dict_update.sh index e6f78cc..3a99494 100755 --- a/dict_update.sh +++ b/dict_update.sh @@ -1,10 +1,11 @@ #!/bin/bash -echo -e "\n\033[32m##### Iniciando a instalação VLibras-Core #####\033[0m\n" +echo -e "\n\033[32m##### Atualizando dicionário #####\033[0m\n" NOT_INSTALLED=false DIR=/opt/vlibras_desktop/vlibras_player_Data/Bundles -BUNDLES=$HOME/unityVideo/videoCreator_Data +PLAYER_DATA="$HOME/unityVideo/videoCreator_Data" +BUNDLES="$PLAYER_DATA/Bundles" function check_update_patches() { @@ -15,10 +16,6 @@ function check_update_patches() done } -if [ ! -d "$BUNDLES" ] ; then - mkdir $BUNDLES -fi - if [ ! -f /etc/apt/sources.list.d/dicionario-vlibras.list ]; then # Add repository to update the dictionary echo 'deb http://150.165.204.46:8080 precise main' | sudo tee /etc/apt/sources.list.d/dicionario-vlibras.list > /dev/null 2>&1 @@ -34,8 +31,15 @@ else sudo apt-get install --only-upgrade --force-yes --yes dicionario-vlibras:i386 fi +#remove pasta bundles +if [ -d "$BUNDLES" ] ; then + rm -r $BUNDLES +fi + #copia dicionário para pasta de bundles -cp -r $DIR $BUNDLES +cp -r $DIR $PLAYER_DATA +cd $BUNDLES +rm *.description #remove pacote if [ "$NOT_INSTALLED" = true ] ; then -- libgit2 0.21.2