From 0adb2d7a5b76018d9ef5b882f322cee4ab437c1c Mon Sep 17 00:00:00 2001 From: kyodev Date: Wed, 6 Dec 2017 14:58:16 +0100 Subject: [PATCH] getThunderbird 1.7.0 --- scripts/getThunderbird | 21 ++++++++++----------- scripts/getThunderbird_changelog.md | 4 ++++ 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/scripts/getThunderbird b/scripts/getThunderbird index 7d9a3b2..3aeffb0 100755 --- a/scripts/getThunderbird +++ b/scripts/getThunderbird @@ -1,7 +1,7 @@ #!/bin/bash -version=1.6.1 -date="5/12/2017" +version=1.7.0 +date="6/12/2017" projet="simpledeb" contact="IRC freenode ##sdeb ou https://framagit.org/kyodev/kyopages/issues/" script="getThunderbird" @@ -340,7 +340,6 @@ f_tb_get_canalBas(){ # 23/09/2017 for i in beta latest; do if [ -d "$dirInstall$i/" ]; then thunderbirdCanalBas="$i"; fi done - unset i [ "$thunderbirdCanalBas" ] || return 1 } @@ -667,7 +666,7 @@ fscript_remove(){ # 4/12/2017 } # mise à jour script si dispo, v2, +update spécifique -fscript_update(){ # 4/12/2017 +fscript_update(){ # 6/12/2017 local dirTemp="/tmp/$script-$RANDOM" [ $(type -t fscript_update_special) ] && fscript_update_special # test, si fonction spécifique, appel @@ -683,7 +682,7 @@ fscript_update(){ # 4/12/2017 mkdir -p "$dirTemp" wget -q --tries=2 --timeout=15 -O "$dirTemp/$script" "$urlScript" if [ "$?" != "0" ]; then f__wget_test "$urlScript"; fi - if grep -q '#!/bin/bash' "$dirTemp/$script" ; then + if grep -q '#!/bin/bash' "$dirTemp/$script" && grep -q '^### END CONTROL' "$dirTemp/$script"; then cp -d "$dirTemp/$script" "$scriptInstall" chmod 775 "$scriptInstall" # rwx rwx r-x, proprio fu_user chown "$fu_user:" "$scriptInstall" @@ -731,12 +730,12 @@ f__requis "wget file tar killall>psmisc" || exit 1 ######## début script / initialisation - # logo et définition couleurs -f_affichage - # tests au démarrage prg_init + # logo et définition couleurs +f_affichage + urlScript="https://framagit.org/kyodev/kyopages/raw/master/scripts/getThunderbird/" urlNotice="https://kyodev.frama.io/kyopages/scripts/getThunderbird/" user_agent="Mozilla/5.0 Firefox" @@ -760,7 +759,6 @@ for j in $options; do produit="$(sed 's/i-//; s/+//' <<< "$1")" if [ "$produit" == "all" ]; then produit="$produitAll"; fi for k in $produit; do f_tb_install "$k"; done - unset k exit ;; # install: installation canal thunderbird $1=produit m-latest | m-beta ) f_tb_alertIcedove @@ -771,7 +769,6 @@ for j in $options; do produit="$(sed 's/r-//; s/-//' <<< "$1")" if [ "$produit" == "all" ]; then produit="$produitAll"; fi for k in $produit; do f_tb_remove "$k"; done - unset k exit ;; # remove: désinstallation thunderbird (y compris ancien répertoire éventuel) u-latest | u-beta ) produit="$(sed 's/u-//' <<< "$1")" @@ -803,8 +800,10 @@ for j in $options; do exit ;; # affichage help esac done -unset j + exit 0 +### END CONTROL (contrôle chargement) + wget -O getThunderbird https://framagit.org/kyodev/kyopages/raw/master/scripts/getThunderbird chmod +x getThunderbird && ./getThunderbird diff --git a/scripts/getThunderbird_changelog.md b/scripts/getThunderbird_changelog.md index 41a0c65..587f465 100644 --- a/scripts/getThunderbird_changelog.md +++ b/scripts/getThunderbird_changelog.md @@ -1,6 +1,10 @@ # changelog getThunderbird +## getThunderbird 1.7.0 6/12/2017 + +* révision: fscript_update, controle chargement début et fin +* révision: changement séquence start pour éviter erreur cron ## 1.6.1 5/12/2017