résolution de bugs lié au merge

This commit is contained in:
Djan GICQUEL 2021-08-04 14:14:43 +02:00
parent 978e3a7360
commit 1ddcfcd88f
1 changed files with 8 additions and 10 deletions

View File

@ -70,8 +70,8 @@ if [ ! $1 = "" ]; then
fichierprofil="$1"
. "$1"
else
cd $dossierprofil
fichierprofil=$(ls -1 *.txt | zenity --height=$H --width=$W --window-icon=$HOME/.icons/borg.svg --list --title "Liste des profils" --text "Choisir un profil dans la liste" --hide-header --column "profil") && . $fichierprofil
fichierprofil=$(ls -1 "$dossierprofil"*.conf | zenity --height=$H --width=$W --window-icon=$HOME/.icons/borg.svg --list --title "Liste des profils" --text "Choisir un profil dans la liste" --hide-header --column "profil")
. $fichierprofil
fi
if [ "$fichierprofil" = "" ]; then
@ -106,18 +106,16 @@ fi\nFiltre : "$filter"\n\
id\nInformation sur le dépôt\n\
ap\nAfficher le profil\n\
--\n------------------------------------------\n\
ed\nEspace disque utilisé : $(df -k --output=pcent $borg_repo | tail -n +2)\n\
<<<<<<< HEAD
qu\nQuitter\
" | zenity --window-icon=$HOME/.icons/borg.svg --list \
ed\nEspace disque utilisé : $(df -k --output=pcent $borg_repo | tail -n +2)" \
| zenity --window-icon=$HOME/.icons/borg.svg --list \
--height=$H --width=$W \
--title "BORG GUI : $nomsauvegarde" \
--hide-header --hide-column=1 --column "id" --column "choix")
if [ "$choixmenu" = "" ];then
exit
elif [ "$choixmenu" = "cs" ] ;then
elif [ "$choixmenu" = "cs" ];then
# Créer une archive
TestBorgRepo
@ -203,6 +201,6 @@ elif [ "$choixmenu" = "ap" ];then
zenity --width=$W --height=$H --info --text="<tt>$(cd $dossierprofil && cat $fichierprofil)</tt>"
elif [ "$choixmenu" = "" ];then
zenity --width=$W --info --text="Aucun choix, retour au menu."
elif [ "$choixmenu" = "qu" ];then
exit
fi