ajout de no-cancel à la création d'archive

en attente de trouver une solution perenne pour l'annulation
This commit is contained in:
Djan GICQUEL 2022-08-12 12:03:23 +02:00
parent 8aed42b296
commit e9c0cf4c61

View File

@ -213,7 +213,7 @@ fi
else else
if [ "$VarDossierPresent" != "false" ];then if [ "$VarDossierPresent" != "false" ];then
log="/tmp/borg-zenity-$borg_archive-$(date +%H-%M-%S).log" log="/tmp/borg-zenity-$borg_archive-$(date +%H-%M-%S).log"
borg create ${borg_excludes} ${borg_compress} "$borg_repo"::"$borg_archive" . 2> "$log" | ZenityPulsate borg create ${borg_excludes} ${borg_compress} "$borg_repo"::"$borg_archive" . 2> "$log" | zenity $W $iconborg --progress --pulsate --auto-close --no-cancel
chmod 777 "$log" chmod 777 "$log"
if [ $(wc -c "$log" | cut -f1 -d " ") -gt 1 ] ;then if [ $(wc -c "$log" | cut -f1 -d " ") -gt 1 ] ;then
zenity $W --error --title "borg-zenity erreur" --text "$(cat $log)" zenity $W --error --title "borg-zenity erreur" --text "$(cat $log)"