suppresion des la boite de dialogue 'espace disque utilisé'. Affichage direct dans le menu.

This commit is contained in:
Djan GICQUEL 2021-07-04 21:56:35 +02:00
parent 890f28a1d2
commit 366d9f9aee
1 changed files with 2 additions and 7 deletions

View File

@ -104,7 +104,8 @@ fi\nFiltre : "$filter"\n\
--\n------------------------------------------\n\
id\nInformation sur le dépôt\n\
ap\nAfficher le profil\n\
ed\nEspace disque utilisé\n\
--\n------------------------------------------\n\
ed\nEspace disque utilisé : $(df -k --output=pcent $borg_repo | tail -n +2)\n\
qu\nQuitter\
" | zenity --list \
--height=400 --width=400 \
@ -196,12 +197,6 @@ elif [ "$choixmenu" = "ap" ];then
zenity --width=600 --height=400 --info --text="<tt>$(cd $dossierprofil && cat $fichierprofil)</tt>"
elif [ "$choixmenu" = "ed" ] ;then
# Espace disque utilisé
espacedisqueutil=$(df -k --output=pcent $borg_repo | tail -n +2)
zenity --width=600 --info --text "Espace disque utilisé : $espacedisqueutil"
elif [ "$choixmenu" = "" ];then
zenity --width=600 --info --text="Aucun choix, retour au menu."
fi