correction d'une regression sur la création d'archive : retour de la barre de
progression affichage inconditionnel de la boite de dialogue sauvegarde terminée affichage du log si erreur
This commit is contained in:
parent
8cb2fc93f1
commit
04136dc7ef
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user