From 04136dc7efe7f9704fff09f8c8eeff1215620738 Mon Sep 17 00:00:00 2001 From: Djan GICQUEL <> Date: Sat, 23 Jul 2022 20:18:48 +0200 Subject: [PATCH] =?UTF-8?q?correction=20d'une=20regression=20sur=20la=20cr?= =?UTF-8?q?=C3=A9ation=20d'archive=20:=20retour=20de=20la=20barre=20de=20p?= =?UTF-8?q?rogression=20affichage=20inconditionnel=20de=20la=20boite=20de?= =?UTF-8?q?=20dialogue=20sauvegarde=20termin=C3=A9e=20affichage=20du=20log?= =?UTF-8?q?=20si=20erreur?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- borg-gui.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/borg-gui.sh b/borg-gui.sh index 94632a8..863b441 100755 --- a/borg-gui.sh +++ b/borg-gui.sh @@ -204,16 +204,15 @@ fi zenity --warning $W $iconborg --text "L'archive existe déjà." else if [ "$VarDossierPresent" != "false" ];then - log="/tmp/borg-zenity-$borg_archive.log" - borg create ${borg_excludes} ${borg_compress} "$borg_repo"::"$borg_archive" "." >> "$log" | ZenityPulsate + log="/tmp/borg-zenity-$borg_archive-$(date +%H-%M-%S).log" + borg create ${borg_excludes} ${borg_compress} "$borg_repo"::"$borg_archive" . 2> "$log" | ZenityPulsate chmod 777 "$log" if [ $(wc -c "$log" | cut -f1 -d " ") -gt 1 ] ;then zenity $W --error --title "borg-zenity erreur" --text "$(cat $log)" - else + fi sync | ZenityPulsate zenity $iconborg --notification --text "Sauvegarde $nomsauvegarde terminée" zenity $W --info --text "Sauvegarde $nomsauvegarde terminée" - fi fi fi