correction fonction filter, la liste est construite avant l'affichage

This commit is contained in:
Djan GICQUEL 2022-07-23 12:48:38 +02:00
parent 5619b57f0f
commit 036b7c953a

View File

@ -61,9 +61,11 @@ ZenityPulsate () {
BorgFilter () { BorgFilter () {
if [ "$filter" = "" ];then if [ "$filter" = "" ];then
Borg_Archive=$(borg list --short "$borg_repo" | zenity $H $W $iconborg --list --title "Listes des archives" --column "Archive") BorgArchiveList=$(borg list --short "$borg_repo")
Borg_Archive=$(echo -e "$BorgArchiveList" | zenity $H $W $iconborg --list --title "Listes des archives" --column "Archive")
else else
Borg_Archive=$(borg list --short "$borg_repo" | grep "$filter" | zenity $H $W $iconborg --list --title "Listes des archives" --column "Archive") BorgArchiveList=$(borg list --short "$borg_repo")
Borg_Archive=$(echo -e "$BorgArchiveList" | grep "$filter" | zenity $H $W $iconborg --list --title "Listes des archives" --column "Archive")
fi fi
} }